Skip to content

Commit

Permalink
[CI] [debian] Containerize testing of standalone
Browse files Browse the repository at this point in the history
This should hopefully deal with #1394 (comment)
  • Loading branch information
JasonGross committed Jun 17, 2024
1 parent da18c98 commit af3451d
Showing 1 changed file with 33 additions and 9 deletions.
42 changes: 33 additions & 9 deletions .github/workflows/coq-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
- name: display per-line timing info
run: etc/ci/github-actions-display-per-line-timing.sh

test-standalone:
test-standalone-host:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -135,10 +135,30 @@ jobs:
printf '::warning::Debian ${{ matrix.debian }} binary does not run on ubuntu: %s\n' \
"$(etc/ci/test-run-fiat-crypto.sh dist/fiat_crypto 2>&1 | tr '\n' '~' | sed 's/~/%0A/g')";
}
- name: setup Debian chroot
run: etc/ci/setup-debian-chroot.sh "${{ matrix.debian }}"
test-standalone-container:
strategy:
fail-fast: false
matrix:
include:
- debian: sid
#- debian: bookworm # restore once 8.17 lands in Debian stable
runs-on: ubuntu-latest
container: debian:${{ matrix.debian }}
needs: build
steps:
- uses: actions/checkout@v4
- name: Download standalone ${{ matrix.debian }}
uses: actions/download-artifact@v4
with:
name: standalone-${{ matrix.debian }}
path: dist/
- name: List files
run: find dist
- run: chmod +x dist/fiat_crypto
- name: host build params
run: etc/ci/describe-system-config.sh
- name: Test files (container)
shell: in-debian-chroot.sh {0}
run: |
echo "::group::file fiat_crypto"
file dist/fiat_crypto
Expand Down Expand Up @@ -187,18 +207,22 @@ jobs:

debian-check-all:
runs-on: ubuntu-latest
needs: [build, test-standalone, publish-standalone-dry-run]
needs: [build, test-standalone-host, test-standalone-container, publish-standalone-dry-run]
if: always()
steps:
- run: echo 'build passed'
if: ${{ needs.build.result == 'success' }}
- run: echo 'test-standalone passed'
if: ${{ needs.test-standalone.result == 'success' }}
- run: echo 'test-standalone-host passed'
if: ${{ needs.test-standalone-host.result == 'success' }}
- run: echo 'test-standalone-container passed'
if: ${{ needs.test-standalone-container.result == 'success' }}
- run: echo 'publish-standalone-dry-run passed'
if: ${{ needs.publish-standalone-dry-run.result == 'success' }}
- run: echo 'build failed' && false
if: ${{ needs.build.result != 'success' }}
- run: echo 'test-standalone failed' && false
if: ${{ needs.test-standalone.result != 'success' }}
- run: echo 'test-standalone-host failed' && false
if: ${{ needs.test-standalone-host.result != 'success' }}
- run: echo 'test-standalone-container failed' && false
if: ${{ needs.test-standalone-container.result != 'success' }}
- run: echo 'publish-standalone-dry-run failed' && false
if: ${{ needs.publish-standalone-dry-run.result != 'success' }}

0 comments on commit af3451d

Please sign in to comment.