CI script
/ build (push) Successful in 1m43s
Details
/ build (push) Successful in 1m43s
Details
This commit is contained in:
parent
9ebd686de2
commit
b88c336714
|
@ -0,0 +1,21 @@
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
# This image is from https://git.syndicate-lang.org/syndicate-lang/syndicate-rs/src/branch/main/.forgejo/workflows/builder-image
|
||||
image: git.syndicate-lang.org/syndicate-lang/rust-builder:latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: CROSS_CONTAINER_IN_CONTAINER=true make ci-release
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: syndicate-udp-driver-x86_64
|
||||
path: target/dist/x86_64
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: syndicate-udp-driver-aarch64
|
||||
path: target/dist/aarch64
|
|
@ -0,0 +1,19 @@
|
|||
all:
|
||||
|
||||
clean:
|
||||
rm -rf target
|
||||
|
||||
ci-release: x86_64-binary-release aarch64-binary-release
|
||||
rm -rf target/dist
|
||||
for arch in x86_64 aarch64; do \
|
||||
mkdir -p target/dist/$$arch; \
|
||||
cp -a target/target.$$arch/$$arch-unknown-linux-musl*/release/syndicate-udp-driver target/dist/$$arch; \
|
||||
done
|
||||
|
||||
%-binary: %-binary-release
|
||||
|
||||
%-binary-release:
|
||||
CARGO_TARGET_DIR=target/target.$* cross build --target $*-unknown-linux-musl --release --all-targets
|
||||
|
||||
%-binary-debug:
|
||||
CARGO_TARGET_DIR=target/target.$* cross build --target $*-unknown-linux-musl --all-targets
|
Loading…
Reference in New Issue