QEmu test #327
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| pull_request: {} | |
| # allow manual runs: | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/tillitis/tkey-builder:5rc2 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| # fetch-depth: 0 | |
| persist-credentials: false | |
| - name: fix | |
| # https://github.com/actions/runner-images/issues/6775 | |
| run: | | |
| git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - name: make | |
| run: make tkey-ssh-agent -j | |
| - name: make windows | |
| run: make windows | |
| - name: Cache linux binary | |
| uses: actions/cache@v4 | |
| with: | |
| path: tkey-ssh-agent | |
| key: build-${{ github.run_number }}-${{ github.sha }}-${{ github.run_attempt }} | |
| qemu-test: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/tillitis/tkey-qemu-tk1-24.03:alpha1 | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Retrieve binary from cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: tkey-ssh-agent | |
| key: build-${{ github.run_number }}-${{ needs.build-bitstream.outputs.commit_sha }}-${{ github.run_attempt }} | |
| - name: Install pipenv | |
| run: | | |
| apt-get update | |
| apt-get install -y --no-install-recommends pipenv | |
| - name: Install test dependencies | |
| run: | | |
| pipenv install --deploy | |
| - name: Run tests | |
| working-directory: test | |
| run: | | |
| pipenv run pytest -v | |
| reuse-compliance-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: REUSE Compliance Check | |
| uses: fsfe/reuse-action@v4 | |
| with: | |
| args: lint |