Skip to content

Commit

Permalink
ci: upload linux artifacts (#623)
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
  • Loading branch information
rvolosatovs authored May 11, 2023
1 parent 35aa4c5 commit 28b0fb4
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,31 @@ env:
FALLBACK_SECRET: 3ImiTAMO0TTD7wrACHrCA+ggkzpw6zGWvE3gtQwlXE6vmnDT9yGP5/WKpLWEJ8fF

jobs:
erts-linux:
strategy:
matrix:
target:
- aarch64-unknown-linux-musl
- aarch64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- x86_64-unknown-linux-gnu

name: erts-${{ matrix.target }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-nix
with:
cachixAuthToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build ERTS
run: nix build -L .#erts-${{ matrix.target }}-fhs
- run: cp $(readlink ./result) erts.tar.gz
- uses: actions/upload-artifact@v3
with:
name: erts-${{ matrix.target }}
path: erts.tar.gz
if-no-files-found: error

nif-darwin:
strategy:
matrix:
Expand Down Expand Up @@ -39,6 +64,30 @@ jobs:
path: ./host_core/native/hostcore_wasmcloud_native/target/${{ matrix.target }}/release/libhostcore_wasmcloud_native.dylib
if-no-files-found: error

nif-linux:
strategy:
matrix:
target:
- aarch64-unknown-linux-musl
- aarch64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- x86_64-unknown-linux-gnu

name: nif-${{ matrix.target }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/install-nix
with:
cachixAuthToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Build NIF
run: nix build -L .#hostcore_wasmcloud_native-${{ matrix.target }}-fhs
- uses: actions/upload-artifact@v3
with:
name: nif-${{ matrix.target }}
path: ./result/lib/libhostcore_wasmcloud_native.so
if-no-files-found: error

nif-windows:
name: nif-x86_64-pc-windows-msvc
runs-on: windows-2022
Expand Down

0 comments on commit 28b0fb4

Please sign in to comment.