|
| 1 | +name: CI |
| 2 | +# Run on main, tags, or any pull request |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: '0 2 * * *' # Daily at 2 AM UTC (8 PM CST) |
| 6 | + push: |
| 7 | + branches: [main] |
| 8 | + tags: ["*"] |
| 9 | + pull_request: |
| 10 | +concurrency: |
| 11 | + # Skip intermediate builds: always. |
| 12 | + # Cancel intermediate builds: only if it is a pull request build. |
| 13 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 14 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
| 15 | +jobs: |
| 16 | + test: |
| 17 | + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} |
| 18 | + runs-on: ${{ matrix.os }} |
| 19 | + strategy: |
| 20 | + fail-fast: false |
| 21 | + matrix: |
| 22 | + version: |
| 23 | + - "1.0" # LTS |
| 24 | + - "1" # Latest Release |
| 25 | + os: |
| 26 | + - ubuntu-latest |
| 27 | + - macOS-latest |
| 28 | + - windows-latest |
| 29 | + arch: |
| 30 | + - x64 |
| 31 | + - x86 |
| 32 | + exclude: |
| 33 | + # Test 32-bit only on Linux |
| 34 | + - os: macOS-latest |
| 35 | + arch: x86 |
| 36 | + - os: windows-latest |
| 37 | + arch: x86 |
| 38 | + include: |
| 39 | + # Add specific version used to run the reference tests. |
| 40 | + # Must be kept in sync with version check in `test/runtests.jl`, |
| 41 | + # and with the branch protection rules on the repository which |
| 42 | + # require this specific job to pass on all PRs |
| 43 | + # (see Settings > Branches > Branch protection rules). |
| 44 | + - os: ubuntu-latest |
| 45 | + version: 1.7.2 |
| 46 | + arch: x64 |
| 47 | + steps: |
| 48 | + - uses: actions/checkout@v2 |
| 49 | + - uses: julia-actions/setup-julia@v1 |
| 50 | + with: |
| 51 | + version: ${{ matrix.version }} |
| 52 | + arch: ${{ matrix.arch }} |
| 53 | + - uses: actions/cache@v2 |
| 54 | + env: |
| 55 | + cache-name: cache-artifacts |
| 56 | + with: |
| 57 | + path: ~/.julia/artifacts |
| 58 | + key: ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
| 59 | + restore-keys: | |
| 60 | + ${{ runner.os }}-${{ matrix.arch }}-test-${{ env.cache-name }}- |
| 61 | + ${{ runner.os }}-${{ matrix.arch }}-test- |
| 62 | + ${{ runner.os }}-${{ matrix.arch }}- |
| 63 | + ${{ runner.os }}- |
| 64 | + - uses: julia-actions/julia-buildpkg@latest |
| 65 | + - run: | |
| 66 | + git config --global user.name Tester |
| 67 | + git config --global user.email te@st.er |
| 68 | + - uses: julia-actions/julia-runtest@latest |
| 69 | + - uses: julia-actions/julia-processcoverage@v1 |
| 70 | + - uses: codecov/codecov-action@v2 |
| 71 | + with: |
| 72 | + files: lcov.info |
0 commit comments