Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: upload linux artifacts #623

Merged
merged 1 commit into from
May 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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