-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (44 loc) · 1.49 KB
/
Test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Run tests
on:
workflow_dispatch:
push:
paths-ignore:
- "**.md"
branches:
- main
pull_request:
paths-ignore:
- "**.md"
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
julia-version: ["1.6", "1"]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v2
- name:
if: ${{ matrix.os == 'windows-latest' }}
run: |
mkdir -p $HOME/output
echo "output_dir=$(echo $HOME/output)" >> $env:GITHUB_ENV
- name:
if: ${{ matrix.os != 'windows-latest' }}
run: |
mkdir -p $HOME/output
echo "output_dir=$(echo $HOME/output)" >> $GITHUB_ENV
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
arch: ${{ (matrix.julia-version == '1.6') && 'x64' || runner.arch }}
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
TEST_OUTPUT_DIR: ${{ env.output_dir }}
- uses: actions/upload-artifact@v2
with:
name: hanoi_${{ matrix.os }}_${{ matrix.julia_version }}.pdf
path: ${{ env.output_dir }}/hanoi.pdf