Skip to content

feat(ci): test Kyber extraction and proofs #1271

feat(ci): test Kyber extraction and proofs

feat(ci): test Kyber extraction and proofs #1271

Workflow file for this run

name: Test installations
on:
pull_request:
merge_group:
workflow_dispatch:
push:
branches: [main]
jobs:
docker:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: docker build -f .docker/Dockerfile . -t hax
setup_sh:
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'merge_group' }}
strategy:
matrix:
os:
- ubuntu-latest
- ubuntu-20.04
- macos-latest
- macos-11
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- if: runner.os == 'macOS'
run: brew install opam nodejs rustup-init jq
- if: runner.os == 'Linux'
run: sudo apt-get update
- if: runner.os == 'Linux'
run: sudo apt-get install -y opam nodejs jq
- run: curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh -s -- -y
- run: opam init --bare -y && opam switch create -y 4.14.1
- name: Run `setup.sh`
run: |
export OPAMERRLOGLEN=0
./setup.sh
- run: cargo hax --version
- name: Test an extraction
uses: actions/checkout@v3
with:
repository: 'hacspec/specs'
- run: |
eval $(opam env)
cargo hax -C -p hacspec-chacha20 \; -i '**' into fstar
setup_sh_status:
if: |
always() &&
github.event_name == 'workflow_dispatch' ||github.event_name == 'merge_group'
needs: setup_sh
runs-on: ubuntu-latest
steps:
- name: Successful
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failing
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1