Skip to content

Commit

Permalink
feat: publish artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Jan 23, 2025
1 parent f9bb8ba commit 69eac4f
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
@@ -0,0 +1,49 @@
name: Zig Build and Test

on:
push:
branches:
- te/publish_built_files

jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [x86_64-linux, aarch64-linux, x86_64-macos]

steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
submodules: recursive # Ensures submodules are cloned
fetch-depth: 0 # Fetches the entire history for all branches

- name: Verify Submodules
run: |
git submodule update --init --recursive
ls -la blst
- name: Run blst/build.sh
run: |
cd blst
./build.sh
- name: Verify built blst
run: |
ls -la blst/libblst.a
- name: Install Zig
uses: mlugg/setup-zig@v1
with:
version: "0.13.0" # Set the required Zig version

- name: Build binary
run: |
zig build -Dtarget=${{ matrix.platform }} test
- name: Upload artifacts for testing
uses: actions/upload-artifact@v3
with:
name: build-output-${{ matrix.platform }}
path: zig-out/lib/*

0 comments on commit 69eac4f

Please sign in to comment.