Skip to content

Commit

Permalink
Cache newcob.val instead of an archive
Browse files Browse the repository at this point in the history
  • Loading branch information
nberth committed Aug 28, 2024
1 parent ebbf921 commit 5112b73
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 40 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,24 +94,14 @@ jobs:
name: testsuite-${{ matrix.os }}.log
path: _build/tests/testsuite.log

- name: Cache newcob.val.tar.gz
- name: Cache newcob.val
uses: actions/cache@v4
id: newcob
with:
path: tests/cobol85/newcob.val.tar.gz.cached
key: newcob
path: _build/tests/cobol85/newcob.val
key: newcob-val
save-always: true

- name: Download newcob.val.tar.gz
if: steps.newcob.outputs.cache-hit != 'true'
run: |
make -C _build/tests/cobol85 newcob.val.tar.gz
ln -f _build/tests/cobol85/newcob.val.tar.gz \
tests/cobol85/newcob.val.tar.gz.cached
- name: NIST85 Test Suite
run: |
ln -f tests/cobol85/newcob.val.tar.gz.cached \
tests/cobol85/newcob.val.tar.gz
make -C _build/tests/cobol85 EXEC85 test \
--jobs=$(($(nproc)+1))
--jobs=$((${NPROC}+1))
32 changes: 6 additions & 26 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,25 +102,15 @@ jobs:
if-no-files-found: error
retention-days: 0

- name: Cache newcob.val.tar.gz
- name: Cache newcob.val
uses: actions/cache@v4
id: newcob
with:
path: tests/cobol85/newcob.val.tar.gz.cached
key: newcob
path: _build/tests/cobol85/newcob.val
key: newcob-val
save-always: true

- name: Download newcob.val.tar.gz
if: steps.newcob.outputs.cache-hit != 'true'
run: |
make -C _build/tests/cobol85 newcob.val.tar.gz
ln -f _build/tests/cobol85/newcob.val.tar.gz \
tests/cobol85/newcob.val.tar.gz.cached
- name: NIST85 Test Suite
run: |
ln -f tests/cobol85/newcob.val.tar.gz.cached \
tests/cobol85/newcob.val.tar.gz
make -C _build/tests/cobol85 EXEC85 test \
--jobs=$(($(nproc)+1))
Expand Down Expand Up @@ -200,25 +190,15 @@ jobs:
name: coverage-${{ matrix.os }}
path: _build/GnuCOBOL-**-coverage

- name: Cache newcob.val.tar.gz
- name: Cache newcob.val
uses: actions/cache@v4
id: newcob
with:
path: tests/cobol85/newcob.val.tar.gz.cached
key: newcob
path: _build/tests/cobol85/newcob.val
key: newcob-val
save-always: true

- name: Download newcob.val.tar.gz
if: steps.newcob.outputs.cache-hit != 'true'
run: |
make -C _build/tests/cobol85 newcob.val.tar.gz
ln -f _build/tests/cobol85/newcob.val.tar.gz \
tests/cobol85/newcob.val.tar.gz.cached
- name: Extended coverage
run: |
ln -f tests/cobol85/newcob.val.tar.gz.cached \
tests/cobol85/newcob.val.tar.gz
make -C _build/tests/cobol85 EXEC85 test \
--jobs=$(($(nproc)+1)) \
--keep-going
Expand Down

0 comments on commit 5112b73

Please sign in to comment.