Changeset 2d0b446 in git for .github


Ignore:
Timestamp:
Feb 23, 2021, 11:27:18 AM (2 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
1d57ef213b0947c87a3f00a2ec18f563d13a13fa
Parents:
0aaff947bac7f5defc09a61304cf2cf83ab6dbede553ba7d16aaa3e3c4c747a4e9bb56c9d7de2a2e
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2021-02-23 11:27:18+01:00
git-committer:
GitHub <noreply@github.com>2021-02-23 11:27:18+01:00
Message:
Merge pull request #1049 from mkoeppe/update-ci-sage

Update GH Actions workflow ci-sage
File:
1 edited

Legend:

Unmodified
Added
Removed
  • .github/workflows/ci-sage.yml

    r0aaff9 r2d0b446  
    4343    tags:
    4444      - '*'
     45  workflow_dispatch:
     46    # Allow to run manually
    4547
    4648env:
     
    5658  SAGE_REPO:   sagemath/sage
    5759  SAGE_REF:    develop
    58   # Temporarily test on the branch from sage ticket for singular 4.1.3 upgrade
     60  # Temporarily test on the branch from sage ticket for singular 4.2 upgrade
    5961  SAGE_TRAC_GIT: git://trac.sagemath.org/sage.git
    6062  SAGE_TRAC_COMMAND: try
     
    99101      CONFIGURE_ARGS: --enable-experimental-packages --enable-download-from-upstream-url
    100102      SAGE_FAT_BINARY: yes
     103      SAGE_LOCAL: /opt/sage-singular-${{ github.sha }}
    101104
    102105    runs-on: windows-latest
     
    143146      run: |
    144147        choco --version
    145         PACKAGES=$(sed 's/#.*//;' ./build/pkgs/cygwin.txt ./build/pkgs/cygwin-bootstrap.txt)
     148        PACKAGES="python38 python38-pip"
    146149        choco install $PACKAGES --source cygwin
    147150    - name: Update Sage packages from upstream artifact
    148151      run: |
    149152        C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && ls -l upstream/ && export PATH="$(pwd)/build/bin:$PATH:/usr/local/bin:/usr/bin" && (cd upstream && bash -x update-pkgs.sh) && git diff'
    150     - name: bootstrap
    151       run: |
    152         C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && env && ./bootstrap'
    153     - name: install additional cygwin packages with choco
    154       if: contains(matrix.pkgs, 'standard')
    155       shell: bash {0}
    156       run: |
    157         PACKAGES=$(sed 's/#.*//;' ./build/pkgs/*/distros/cygwin.txt)
    158         choco install $PACKAGES --source cygwin
    159     - name: configure
    160       run: |
    161         C:\\tools\\cygwin\\bin\\bash -l -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && ./configure $CONFIGURE_ARGS'
    162     - name: make $TARGETS
    163       run: |
    164         C:\\tools\\cygwin\\bin\\bash -l -x -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && make -k -w V=0 base-toolchain && make -k -w V=1 $TARGETS'
    165     - name: make $TARGETS_OPTIONAL
    166       run: |
    167         C:\\tools\\cygwin\\bin\\bash -l -x -c 'export PATH=/usr/local/bin:/usr/bin && cd $(cygpath -u "$GITHUB_WORKSPACE") && make -k -w V=1 $TARGETS_OPTIONAL'
     153    - name: tox
     154      run: |
     155        C:\\tools\\cygwin\\bin\\bash -l -x -c 'python3.8 -m pip install tox'
     156        C:\\tools\\cygwin\\bin\\bash -l -x -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && PREFIX="${{ env.SAGE_LOCAL }}" tox -e local-cygwin-choco-${{ matrix.pkgs }} -- $TARGETS'
    168157    - name: Prepare logs artifact
    169158      shell: bash
     
    185174    - name: Prepare sage-local artifact
    186175      # We specifically use the cygwin tar so that symlinks are saved/restored correctly on Windows.
    187       # We remove the local/lib64 link, which will be recreated by the next stage.
    188       run: |
    189         C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && rm -f local/lib64; tar -cf /tmp/sage-local-${{ env.STAGE }}.tar --remove-files local'
     176      # We remove the $SAGE_LOCAL/lib64 link, which will be recreated by the next stage.
     177      run: |
     178        C:\\tools\\cygwin\\bin\\bash -l -c 'cd $(cygpath -u "$GITHUB_WORKSPACE") && rm -f "${{ env.SAGE_LOCAL }}"/lib64; tar -cf /tmp/sage-local-${{ env.STAGE }}.tar --remove-files "${{ env.SAGE_LOCAL }}"'
    190179      if: always()
    191180    - uses: actions/upload-artifact@v2
     
    204193      max-parallel: 32
    205194      matrix:
    206         tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-eoan, ubuntu-focal, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, centos-7, centos-8, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, ubuntu-eoan-i386, debian-buster-i386, centos-7-i386, raspbian-buster-armhf]
     195        tox_system_factor: [ubuntu-trusty, ubuntu-xenial, ubuntu-bionic, ubuntu-focal, ubuntu-groovy, ubuntu-hirsute, debian-jessie, debian-stretch, debian-buster, debian-bullseye, debian-sid, linuxmint-17, linuxmint-18, linuxmint-19, linuxmint-19.3, linuxmint-20.1, fedora-26, fedora-27, fedora-28, fedora-29, fedora-30, fedora-31, fedora-32, fedora-33, fedora-34, centos-7, centos-8, gentoo, archlinux-latest, slackware-14.2, conda-forge, ubuntu-bionic-i386, ubuntu-focal-i386, debian-buster-i386, centos-7-i386, raspbian-buster-armhf]
    207196        tox_packages_factor: [minimal, standard]
    208197    env:
     
    235224        run: |
    236225          sudo DEBIAN_FRONTEND=noninteractive apt-get update
    237           sudo DEBIAN_FRONTEND=noninteractive apt-get install python-tox python3-setuptools
     226          sudo DEBIAN_FRONTEND=noninteractive apt-get install tox python3-setuptools
    238227      - name: Update Sage packages from upstream artifact
    239228        run: |
     
    283272      max-parallel: 4
    284273      matrix:
     274        os: [ macos-10.15, macos-11.0 ]
    285275        tox_system_factor: [homebrew-macos, homebrew-macos-python3_xcode, homebrew-macos-python3_xcode-nokegonly, conda-forge-macos]
    286276        tox_packages_factor: [minimal, standard]
     277        xcode_version_factor: [11.7, default, 12.3]
    287278
    288279    needs: [dist]
     
    290281    env:
    291282      TOX_ENV: local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
    292       LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}
     283      LOGS_ARTIFACT_NAME: logs-commit-${{ github.sha }}-tox-local-${{ matrix.tox_system_factor }}-${{ matrix.tox_packages_factor }}-${{ matrix.os }}-xcode_${{ matrix.xcode_version_factor }}
    293284      DOCKER_TARGETS: configured with-targets with-targets-optional
    294285
    295286    steps:
    296287
     288      - name: Select Xcode version
     289        run: |
     290          if [ ${{ matrix.xcode_version_factor }} != default ]; then sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode_version_factor }}.app; fi
    297291      - name: Check out SageMath
    298292        uses: actions/checkout@v2
Note: See TracChangeset for help on using the changeset viewer.