differentiate static and non static key

This commit is contained in:
Dedy Martadinata S 2022-07-14 12:43:43 +07:00 committed by GitHub
parent 0098e90278
commit eb9c2916b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,7 +61,7 @@ jobs:
image: rust:1.61 image: rust:1.61
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
RUSTFLAGS: -Ctarget-feature=-crt-static RUSTFLAGS: -Ctarget-feature=+crt-static
steps: steps:
- name: install runtime - name: install runtime
run: apt update && apt install -y gcc-x86-64-linux-gnu g++-x86-64-linux-gnu libc6-dev libgnutls28-dev 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/registry/cache
/usr/local/cargo/git/db /usr/local/cargo/git/db
target target
key: lldap-ui-${{ hashFiles('**/Cargo.lock') }} key: lldap-ui-static-${{ hashFiles('**/Cargo.lock') }}
restore-keys: | restore-keys: |
lldap-ui- lldap-ui-static-
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v2 uses: actions/checkout@v2
# Prevent install error on existing cached # Prevent install error on existing cached
@ -131,9 +131,9 @@ jobs:
.cargo/registry/cache .cargo/registry/cache
.cargo/git/db .cargo/git/db
target target
key: lldap-bin-armhf-${{ hashFiles('**/Cargo.lock') }} key: lldap-bin-armhf-static-${{ hashFiles('**/Cargo.lock') }}
restore-keys: | restore-keys: |
lldap-bin-armhf- lldap-bin-armhf-static-
- name: compile armhf - name: compile armhf
run: cargo build --target=armv7-unknown-linux-gnueabihf --release -p lldap -p migration-tool run: cargo build --target=armv7-unknown-linux-gnueabihf --release -p lldap -p migration-tool
- name: check path - name: check path
@ -184,9 +184,9 @@ jobs:
.cargo/registry/cache .cargo/registry/cache
.cargo/git/db .cargo/git/db
target target
key: lldap-bin-aarch64-${{ hashFiles('**/Cargo.lock') }} key: lldap-bin-aarch64-static-${{ hashFiles('**/Cargo.lock') }}
restore-keys: | restore-keys: |
lldap-bin-aarch64- lldap-bin-aarch64-static-
- name: compile aarch64 - name: compile aarch64
run: cargo build --target=aarch64-unknown-linux-gnu --release -p lldap -p migration-tool run: cargo build --target=aarch64-unknown-linux-gnu --release -p lldap -p migration-tool
- name: check path - name: check path
@ -225,9 +225,9 @@ jobs:
.cargo/registry/cache .cargo/registry/cache
.cargo/git/db .cargo/git/db
target target
key: lldap-bin-amd64-${{ hashFiles('**/Cargo.lock') }} key: lldap-bin-amd64-static-${{ hashFiles('**/Cargo.lock') }}
restore-keys: | restore-keys: |
lldap-bin-amd64- lldap-bin-amd64-static-
- name: compile amd64 - name: compile amd64
run: cargo build --target=x86_64-unknown-linux-gnu --release -p lldap -p migration-tool run: cargo build --target=x86_64-unknown-linux-gnu --release -p lldap -p migration-tool
- name: check path - name: check path