Skip to content

Commit

Permalink
ci: add release script
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Sep 23, 2024
1 parent 34daa3a commit 60ce9e5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ci/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env sh

set -xe

id=$(gh run list -b main -w west -L 1 --json databaseId -q '.[].databaseId')
git clean -xf lib target/artifacts
gh run download -D lib -n 'passthrough' "$id"
gh run download -D target/artifacts -p 'west-*' "$id"
mv -v target/artifacts/west-aarch64-apple-darwin/lib/libwest_sys.a ./lib/aarch64-darwin/libwest.a
mv -v target/artifacts/west-aarch64-linux-android/lib/libwest_sys.a ./lib/aarch64-android/libwest.a
mv -v target/artifacts/west-aarch64-unknown-linux-musl/lib/libwest_sys.a ./lib/aarch64-linux/libwest.a
mv -v target/artifacts/west-riscv64gc-unknown-linux-gnu/lib/libwest_sys.a ./lib/riscv64-linux/libwest.a
mv -v target/artifacts/west-x86_64-apple-darwin/lib/libwest_sys.a ./lib/x86_64-darwin/libwest.a
mv -v target/artifacts/west-x86_64-pc-windows-gnu/lib/libwest_sys.a ./lib/x86_64-windows/libwest.a
mv -v target/artifacts/west-x86_64-unknown-linux-musl/lib/libwest_sys.a ./lib/x86_64-linux/libwest.a
git reset
git add -f lib
git commit -Ss -m 'build: add build artifacts'
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@
pkgs.wit-deps

pkgs.pkgsUnstable.cargo-audit
pkgs.pkgsUnstable.gh
pkgs.pkgsUnstable.go_1_23
pkgs.pkgsUnstable.wasm-tools
pkgs.pkgsUnstable.wasmtime
Expand Down

0 comments on commit 60ce9e5

Please sign in to comment.