mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-08 12:35:28 +00:00
move release script
Putting it in the top level can cause confusion. Resolves #69
This commit is contained in:
parent
42262ef4ed
commit
2359127167
3 changed files with 2 additions and 2 deletions
24
.github/workflows/release.sh
vendored
Executable file
24
.github/workflows/release.sh
vendored
Executable file
|
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
# This is used to build cross platform linux binaries for a release in CI.
|
||||
# Since this is not supervised, abort if anything does not work.
|
||||
set -e
|
||||
|
||||
# Cross-compiling needs a linker for the respective platforms. If you are on a Debian-based x86_64 Linux,
|
||||
# you can install them with:
|
||||
sudo apt -y install podman gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu
|
||||
# Also install cross compilation tool for cargo
|
||||
cargo install cross
|
||||
|
||||
for i in x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu arm-unknown-linux-gnueabihf armv7-unknown-linux-gnueabihf
|
||||
do
|
||||
cross build --verbose --release --target $i
|
||||
cp target/$i/release/agate agate.$i
|
||||
done
|
||||
|
||||
# Strip all the binaries.
|
||||
strip agate.x86_64-unknown-linux-gnu
|
||||
aarch64-linux-gnu-strip agate.aarch64-unknown-linux-gnu
|
||||
arm-linux-gnueabihf-strip agate.arm-unknown-linux-gnueabihf agate.armv7-unknown-linux-gnueabihf
|
||||
|
||||
# compress the binaries.
|
||||
gzip agate.*
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: build
|
||||
run: bash release.sh
|
||||
run: bash .github/workflows/release.sh
|
||||
- name: upload release asset x86_64
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue