port some of artifacts building to gh actions (attempt 1)
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
aa3fd6a47e
commit
77e8a6e5ae
1 changed files with 30 additions and 2 deletions
32
.github/workflows/ci.yml
vendored
32
.github/workflows/ci.yml
vendored
|
@ -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
|
Loading…
Add table
Reference in a new issue