Skip to content

Commit

Permalink
ci: update github actions to @v4 (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
burgerrg authored Feb 2, 2024
1 parent 194045b commit 24adf10
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
echo "HASH_KEY=$(cat ChezScheme/.git/refs/heads/main)" >> "${GITHUB_OUTPUT}"
- name: Establish Chez Scheme .git / boot file cache
id: build-restore-bootfiles
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: boot-files
with:
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
- machine: a6nt
os: windows-2022
chez: v9.6.4
- machine: a6nt
- machine: ta6nt
os: windows-2022
chez: v9.6.4
- machine: a6nt
Expand Down Expand Up @@ -121,12 +121,12 @@ jobs:
if: ${{ runner.os == 'Windows' }}
run: git config --global core.autocrlf false
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
# the checkout action wipes the workarea, so do the checkout
# *before* we restore and build Chez Scheme from cache
- name: Restore Chez Scheme .git / boot file cache
id: mats-restore-bootfiles
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: boot-files
with:
Expand Down Expand Up @@ -173,9 +173,9 @@ jobs:
- name: Run tests
run: make test || echo "Run tests failed" >> failures
- name: Archive test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.machine }}-${{ matrix.config.chez }}-test
name: ${{ matrix.config.machine }}-${{ matrix.config.os }}-${{ matrix.config.chez }}-test
path: |
data/mat-report.html
src/swish/*.mo
Expand All @@ -185,17 +185,17 @@ jobs:
- name: Run coverage
run: .github/workflows/unless-failed.sh coverage
- name: Archive coverage results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.machine }}-${{ matrix.config.chez }}-coverage
name: ${{ matrix.config.machine }}-${{ matrix.config.os }}-${{ matrix.config.chez }}-coverage
path: |
data/mat-report.html
src/swish/*.mo
- name: Archive coverage reports
if: ${{ matrix.config.chez == 'main' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.machine }}-${{ matrix.config.chez }}-coverage-report
name: ${{ matrix.config.machine }}-${{ matrix.config.os }}-${{ matrix.config.chez }}-coverage-report
path: |
data/coverage.html
data/src/**/*.html
Expand All @@ -208,12 +208,12 @@ jobs:
target="$(realpath "$f")"
ln -vsf "../$(realpath --relative-to="${PWD}/build/swish" "${target}")" "$f"
done
tar -cvf ${{ matrix.config.machine }}-${{ matrix.config.chez }}-build.tar build/swish
tar -cvf ${{ matrix.config.machine }}-${{ matrix.config.os }}-${{ matrix.config.chez }}-build.tar build/swish
- name: Archive build artifacts
if: ${{ matrix.config.chez != 'main' && !startsWith(matrix.config.machine, 't') }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.config.machine }}-${{ matrix.config.chez }}-build.tar
path: ${{ matrix.config.machine }}-${{ matrix.config.chez }}-build.tar
name: ${{ matrix.config.machine }}-${{ matrix.config.os }}-${{ matrix.config.chez }}-build.tar
path: ${{ matrix.config.machine }}-${{ matrix.config.os }}-${{ matrix.config.chez }}-build.tar
- name: Check for failures
run: if test -f failures; then cat failures; exit 1; fi

0 comments on commit 24adf10

Please sign in to comment.