From 5f93cf3ba736f094e5efd9ac914ec27415605990 Mon Sep 17 00:00:00 2001 From: John Long Date: Wed, 4 Jan 2023 16:15:02 -0500 Subject: [PATCH 1/2] Initial single-threaded runtests with skip duplicate ability --- .github/workflows/CI.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/CI.yaml diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml new file mode 100644 index 0000000..d325b8b --- /dev/null +++ b/.github/workflows/CI.yaml @@ -0,0 +1,35 @@ +name: CI +# execute on a push or pull request +on: + - push + - pull_request + +jobs: + pre_job: + runs-on: [ubuntu-latest] + # taken from Bloqade.jl CI.yaml + outputs: + should_skip: ${{ steps.skip_check.outputs.should_skip }} + steps: + - id: skip_check + uses: fkirc/skip-duplicate-actions@master + + # taken from example on julia-actions/runtest@v1 + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + julia-version: ['1','1.6'] + julia-arch: x64 + os: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.julia-version }} + arch: ${{ matrix.julia-arch }} + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + with: + annotate: true \ No newline at end of file From 74b1bea8343be53e7b335530130e14e1162aa8e4 Mon Sep 17 00:00:00 2001 From: John Long Date: Wed, 4 Jan 2023 16:34:58 -0500 Subject: [PATCH 2/2] Fix Github CI error not recognizing entires in matrix --- .github/workflows/CI.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index d325b8b..52f4f35 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -20,8 +20,8 @@ jobs: strategy: matrix: julia-version: ['1','1.6'] - julia-arch: x64 - os: ubuntu-latest + julia-arch: [x64] + os: [ubuntu-latest] steps: - uses: actions/checkout@v2