-
Notifications
You must be signed in to change notification settings - Fork 764
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Zig to build aarch64 binaries (#1249)
- Loading branch information
Showing
6 changed files
with
264 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Make ARM Plugins (Windows/macOS/Linux) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version_number: | ||
description: 'Version number' | ||
required: true | ||
default: '1.x.x' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: 'recursive' | ||
- name: Setup Zig | ||
run: | | ||
mkdir /zig | ||
curl 'https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz' | tar xJ --strip-components=1 --directory=/zig | ||
ln -s /zig/zig /usr/bin/zig | ||
- name: Build plugin | ||
env: | ||
VERSION: ${{ github.event.inputs.version_number }} | ||
run: | | ||
cd javascript/net/grpc/web/generator | ||
zig build -Drelease-fast | ||
- name: gen and verify sha256 | ||
run: | | ||
cd javascript/net/grpc/web/generator/zig-out/bin | ||
for exe in $(ls) | ||
do | ||
openssl dgst -sha256 -r -out $exe'.sha256' $exe | ||
sha256sum -c $exe'.sha256' | ||
done | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: plugin | ||
path: javascript/net/grpc/web/generator/zig-out/bin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ target | |
.project | ||
.classpath | ||
.settings | ||
zig-out | ||
zig-cache |
Oops, something went wrong.