Skip to content

Commit 4c04901

Browse files
committed
Add CI with assertions.
1 parent 42b109d commit 4c04901

File tree

1 file changed

+28
-11
lines changed

1 file changed

+28
-11
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,44 @@ on:
77
workflow_dispatch:
88
jobs:
99
test:
10-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
10+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - assertions=${{ matrix.assertions }}
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
version:
16-
- '1.6'
17-
- '^1.7.0-beta2'
18-
- 'nightly'
19-
os:
20-
- ubuntu-latest
21-
- macOS-latest
22-
- windows-latest
23-
arch:
24-
- x64
15+
version: ['1.6', '1.7', '^1.8.0-beta1', 'nightly']
16+
os: [ubuntu-latest, macOS-latest, windows-latest]
17+
arch: [x64]
18+
assertions: [false]
19+
include:
20+
# special test with LLVM assertions enabled
21+
# TODO: enable this across all versions
22+
# (needs julia-actions/setup-julia support)
23+
- os: ubuntu-latest
24+
arch: x64
25+
version: '1.7'
26+
assertions: true
27+
- os: ubuntu-latest
28+
arch: x64
29+
version: '1.8'
30+
assertions: true
2531
steps:
2632
- uses: actions/checkout@v2
2733
- uses: julia-actions/setup-julia@v1
34+
if: ${{ ! matrix.assertions }}
2835
with:
2936
version: ${{ matrix.version }}
3037
arch: ${{ matrix.arch }}
38+
- name: Download Julia with assertions
39+
if: ${{ matrix.assertions }}
40+
env:
41+
version: ${{ matrix.version }}
42+
arch: ${{ matrix.arch }}
43+
run: |
44+
wget https://julialangnightlies.s3.amazonaws.com/assert_bin/linux/$arch/$version/julia-latest-linux64.tar.gz
45+
tar -xvzf julia-latest-linux64.tar.gz
46+
rm -rf julia-latest-linux64.tar.gz
47+
echo $PWD/julia-*/bin >> $GITHUB_PATH
3148
- uses: actions/cache@v1
3249
env:
3350
cache-name: cache-artifacts

0 commit comments

Comments
 (0)