diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 428161a835504ce73e660e75cc38b48d2d38263a..8b545581194adae5fc35686e5f4f97afb19430b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,10 +1,11 @@ -name: CI +name: CI and Artifacts on: pull_request: push: branches: - main + - gh-actions-port env: # Required to make some things output color @@ -12,7 +13,7 @@ env: jobs: ci: - name: CI + name: CI and Artifacts runs-on: ubuntu-latest @@ -30,8 +31,13 @@ jobs: # Add the `nix-community` cachix to speed up things that leverage it extra_nix_config: | + experimental-features = nix-command flakes extra-substituters = https://nix-community.cachix.org extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= + extra-substituters = https://crane.cachix.org + extra-trusted-public-keys = crane.cachix.org-1:8Scfpmn9w+hGdXH/Q9tTLiYAE/2dnJYRJP7kl80GuRk= + extra-substituters = https://nix.computer.surgery/conduit + extra-trusted-public-keys = conduit:ZGAf6P6LhNvnoJJ3Me3PRg7tlLSrPxcQ2RiE5LIppjo= - name: Pop/push Magic Nix Cache uses: DeterminateSystems/magic-nix-cache-action@main @@ -63,3 +69,25 @@ jobs: run: | direnv allow direnv exec . engage + + - name: Build static-x86_64-unknown-linux-musl + run: ./bin/nix-build-and-cache .#static-x86_64-unknown-linux-musl + + - name: Upload artifact static-x86_64-unknown-linux-musl + uses: actions/upload-artifact@v4 + run: cp result/bin/conduit conduit + with: + name: static-x86_64-unknown-linux-musl + path: conduit + if-no-files-found: error + + - name: Build static-aarch64-unknown-linux-musl + run: ./bin/nix-build-and-cache .#static-aarch64-unknown-linux-musl + + - name: Upload artifact static-aarch64-unknown-linux-musl + uses: actions/upload-artifact@v4 + run: cp result/bin/conduit conduit + with: + name: static-aarch64-unknown-linux-musl + path: conduit + if-no-files-found: error \ No newline at end of file