From 10d826fc46284f090215b4e62c89861563062f17 Mon Sep 17 00:00:00 2001 From: Dedy Martadinata Supriyadi Date: Mon, 1 Aug 2022 14:31:44 +0700 Subject: [PATCH] using script --- .github/workflows/docker-build-static.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docker-build-static.yml b/.github/workflows/docker-build-static.yml index 0584aca..c69d360 100644 --- a/.github/workflows/docker-build-static.yml +++ b/.github/workflows/docker-build-static.yml @@ -198,7 +198,7 @@ jobs: build-amd64: runs-on: ubuntu-latest container: - image: martadinata666/debian:rust-dev + image: rust:1.62 env: CARGO_TERM_COLOR: always RUSTFLAGS: -Ctarget-feature=+crt-static @@ -218,10 +218,14 @@ jobs: key: lldap-bin-amd64-${{ hashFiles('**/Cargo.lock') }} restore-keys: | lldap-bin-amd64- - - name: add x86_64 target - run: rustup target add x86_64-unknown-linux-musl - - name: build x86_64 lldap - run: cargo build --target=x86_64-unknown-linux-musl --release -p lldap -p migration-tool + - name: install musl + run: apt update && apt install -y musl-tools + - name: fetch musl gcc and build + run: ./build-amd64.sh +# - name: add x86_64 target +# run: rustup target add x86_64-unknown-linux-musl +# - name: build x86_64 lldap +# run: cargo build --target=x86_64-unknown-linux-musl --release -p lldap -p migration-tool - name: check path run: ls -al target/x86_64-unknown-linux-musl/release/ - name: upload amd64 lldap artifacts