[test] use nix to build the codegen binary #4
This file contains 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: Generate Test elf | ||
on: | ||
push: | ||
paths: | ||
- 'tests/**' | ||
pull_request: | ||
paths: | ||
- 'tests/**' | ||
jobs: | ||
gen-test-artifacts: | ||
runs-on: [self-hosted, linux] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
- run: sudo -E .github/setup-actions.sh | ||
env: | ||
AWS_CREDENTIALS: ${{secrets.AWS_CREDENTIALS}} | ||
CACHE_PRIV_KEY: ${{secrets.CACHE_PRIV_KEY}} | ||
CACHE_DOMAIN: ${{secrets.CACHE_DOMAIN}} | ||
- uses: cachix/install-nix-action@v19 | ||
with: | ||
install_url: https://releases.nixos.org/nix/nix-2.13.3/install | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
extra_nix_config: | | ||
post-build-hook = /etc/nix/upload-to-cache.sh | ||
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= minio.inner.fi.c-3.moe:gDg5SOIH65O0tTV89dUawME5BTmduWWaA7as/cqvevM= | ||
extra-substituters = https://${{secrets.CACHE_DOMAIN}}/nix | ||
- run: nix develop -c make gen-tests-artifacts | ||
- uses: softprops/action-gh-release@v1 | ||
with: | ||
files: tests-artifacts.tar.gz | ||
tag_name: ${{ GITHUB_SHA }} | ||
Check failure on line 33 in .github/workflows/gen-test-elf.yml
|