dymokomi/luce-crypto
Source of release 0.6.0
0.6.0 / .github / workflows / correctness.yml
name: Native crypto correctness
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
correctness:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-15]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
with:
path: luce-crypto
- uses: actions/checkout@v4
with:
repository: dymokomi/luce-base
path: luce-base
# every dependency at main, beside this checkout (luce-base docs/CI.md)
- name: Check out dependencies at main
shell: bash
working-directory: ${{ github.workspace }}
run: |
python3 luce-base/tools/checkout_main.py luce-crypto luce
- uses: actions/setup-python@v5
with:
python-version: '3.14'
- name: Bootstrap without language source changes
working-directory: luce-crypto
run: python3 tools/bootstrap.py
- name: Recompute fixtures with the pinned test-only Argon2 reference
working-directory: luce-crypto
shell: bash
run: |
set -o pipefail
python3 -m venv build/oracle-env
build/oracle-env/bin/python -m pip install --disable-pip-version-check --only-binary=:all: -r tests/oracle-requirements.txt
build/oracle-env/bin/python tests/argon_oracle.py 2>&1 | tee build/argon-oracle.log
- name: All six modes and real Luce consumer
working-directory: luce-crypto
shell: bash
run: |
set -o pipefail
python3 tests/run.py 2>&1 | tee build/correctness.log
- name: Memory safety instrumentation
working-directory: luce-crypto
shell: bash
run: |
set -o pipefail
python3 tests/sanitize.py 2>&1 | tee build/sanitize.log
- name: Larger bounded file streams
working-directory: luce-crypto
shell: bash
run: |
set -o pipefail
python3 tests/check_hashes.py build/native3/driver build/native3/file-driver --full 2>&1 | tee build/extended.log
- name: Retain generated memory bodies for review
working-directory: luce-crypto
run: python3 tools/codegen_probe.py
- name: Larger bounded Argon2id memory costs
working-directory: luce-crypto
shell: bash
run: |
set -o pipefail
python3 tests/check_argon.py build/native3/argon-driver --full 2>&1 | tee build/argon-extended.log
- name: Bundle Linux tests
if: runner.os == 'Linux'
working-directory: luce-crypto
run: python3 tools/test_bundle.py --output build/luce-crypto-smoke-x86_64-linux.tar.gz
- name: Upload Linux test bundle
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: luce-crypto-smoke-x86_64-linux
path: luce-crypto/build/luce-crypto-smoke-x86_64-linux.tar.gz
retention-days: 7
- uses: actions/upload-artifact@v4
if: always()
with:
name: crypto-tests-${{ matrix.os }}
path: |
luce-crypto/build/correctness.log
luce-crypto/build/sanitize.log
luce-crypto/build/extended.log
luce-crypto/build/argon-oracle.log
luce-crypto/build/argon-extended.log
luce-crypto/build/failures/
luce-crypto/build/codegen/