Skip to content

CI

CI #1697

Workflow file for this run

name: CI
on:
push:
branches:
- 'master'
- 'release-*'
tags: '*'
pull_request:
schedule:
# Every day at 3:08 AM UTC
- cron: '8 3 * * *'
workflow_dispatch:
concurrency:
# group by workflow and ref; the last slightly strange component ensures that for pull
# requests, we limit to 1 concurrent job, but for the default repository branch we don't
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref_name != github.event.repository.default_branch || github.run_number }}
# Cancel intermediate builds, but only if it is a pull request build.
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
continue-on-error: ${{ matrix.julia-version == 'nightly' }}
strategy:
fail-fast: false
matrix:
julia-version:
- 'nightly'
os:
- macOS-latest
count:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
steps:
- uses: actions/checkout@v4
with:
# For Codecov, we must also fetch the parent of the HEAD commit to
# be able to properly deal with PRs / merges
fetch-depth: 2
- name: "Install extra dependencies"
if: runner.os == 'Linux'
run: sudo apt-get install expect
- name: "Set up Julia"
run: |
cd ../../
wget -O julia.tar.gz https://buildkite.com/organizations/julialang/pipelines/julia-master/builds/43472/jobs/019438aa-2de7-453d-891c-b92662c5b9bf/artifacts/019438b2-5921-445e-a3cb-c8cffeb0f2f3
tar xvf julia.tar.gz
mkdir -p /Users/runner/.local/bin
ln -s /Users/runner/work/julia-*/bin/julia /Users/runner/.local/bin/julia
id: setup-julia
# - name: "workaround libstdc++ issue for julia 1.6"
# if: matrix.julia-version == '1.6' && runner.os == 'Linux'
# run: rm -f ${{ steps.setup-julia.outputs.julia-bindir }}/../lib/julia/libstdc++.so.6
- name: "Build package"
uses: julia-actions/julia-buildpkg@v1
- name: "Run precompilation"
run: julia --project=@. -e 'using GAP'
# - name: "Run tests"
# uses: julia-actions/julia-runtest@v1
# with:
# depwarn: error
- name: "Test REPL integration"
run: etc/expect.sh --project=@.