buildci: generalise for all push events and PRs

This means that tags are included now

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
Gunwant Jain
2022-01-20 05:21:25 +05:30
parent 3968796a49
commit a6709a1307
2 changed files with 8 additions and 10 deletions

4
.github/buildci.sh vendored
View File

@@ -16,7 +16,7 @@ setup_cross_compiling() {
# Building for the given architecture
build_for_arch() {
__ARCH=$1
__SHA=$2
__REF=$2
# Statically compile
case "$__ARCH" in \
@@ -29,5 +29,5 @@ build_for_arch() {
# Export them artifacts
mkdir -p artifacts
cp -av /home/runner/.cargo/bin/bin "artifacts/bin-$__SHA-$__TARGET"
cp -av /home/runner/.cargo/bin/bin "artifacts/bin-$__REF-$__TARGET"
}