From eb9c2916b567b51b08cf83944c953dc2f8b3ecbd Mon Sep 17 00:00:00 2001 From: Dedy Martadinata S Date: Thu, 14 Jul 2022 12:43:43 +0700 Subject: [PATCH] differentiate static and non static key --- .github/workflows/docker-build-static.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-build-static.yml b/.github/workflows/docker-build-static.yml index 63b0a66..bdd05a4 100644 --- a/.github/workflows/docker-build-static.yml +++ b/.github/workflows/docker-build-static.yml @@ -61,7 +61,7 @@ jobs: image: rust:1.61 env: CARGO_TERM_COLOR: always - RUSTFLAGS: -Ctarget-feature=-crt-static + RUSTFLAGS: -Ctarget-feature=+crt-static steps: - name: install runtime run: apt update && apt install -y gcc-x86-64-linux-gnu g++-x86-64-linux-gnu libc6-dev libgnutls28-dev @@ -79,9 +79,9 @@ jobs: /usr/local/cargo/registry/cache /usr/local/cargo/git/db target - key: lldap-ui-${{ hashFiles('**/Cargo.lock') }} + key: lldap-ui-static-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - lldap-ui- + lldap-ui-static- - name: Checkout repository uses: actions/checkout@v2 # Prevent install error on existing cached @@ -131,9 +131,9 @@ jobs: .cargo/registry/cache .cargo/git/db target - key: lldap-bin-armhf-${{ hashFiles('**/Cargo.lock') }} + key: lldap-bin-armhf-static-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - lldap-bin-armhf- + lldap-bin-armhf-static- - name: compile armhf run: cargo build --target=armv7-unknown-linux-gnueabihf --release -p lldap -p migration-tool - name: check path @@ -184,9 +184,9 @@ jobs: .cargo/registry/cache .cargo/git/db target - key: lldap-bin-aarch64-${{ hashFiles('**/Cargo.lock') }} + key: lldap-bin-aarch64-static-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - lldap-bin-aarch64- + lldap-bin-aarch64-static- - name: compile aarch64 run: cargo build --target=aarch64-unknown-linux-gnu --release -p lldap -p migration-tool - name: check path @@ -225,9 +225,9 @@ jobs: .cargo/registry/cache .cargo/git/db target - key: lldap-bin-amd64-${{ hashFiles('**/Cargo.lock') }} + key: lldap-bin-amd64-static-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - lldap-bin-amd64- + lldap-bin-amd64-static- - name: compile amd64 run: cargo build --target=x86_64-unknown-linux-gnu --release -p lldap -p migration-tool - name: check path