using script

This commit is contained in:
Dedy Martadinata Supriyadi 2022-08-01 14:31:44 +07:00 committed by nitnelave
parent 252bd6cf39
commit 10d826fc46

View File

@ -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