Skip to content

Commit

Permalink
Update buid_linux.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tkzcfc authored Jul 17, 2024
1 parent f729c6a commit 42eecd2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/buid_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Checkout npipe_web
run: git clone https://github.com/tkzcfc/npipe_web.git

- name: Install dependencies
run: sudo apt update && sudo apt install musl-tools -y
Expand All @@ -38,7 +35,7 @@ jobs:
CC: musl-gcc
RUSTFLAGS: "-C target-feature=+crt-static -C relocation-model=static"
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER: musl-gcc
SQLX_OFFLINE: true
SQLX_OFFLINE: false
run: |
cargo build --bin np_client --release --target x86_64-unknown-linux-musl
cargo build --bin np_server --release --target x86_64-unknown-linux-musl
Expand All @@ -51,15 +48,17 @@ jobs:
- name: Build web
id: build_web
run: |
cd ../
git clone https://github.com/tkzcfc/npipe_web.git
cd npipe_web
rustup target add wasm32-unknown-unknown
cargo install --locked trunk
trunk build --release --target wasm32-unknown-unknown
trunk build --release
cd ../
mkdir -p release
cp -r ./npipe_web/dist/ ./release/
cp ./target/x86_64-unknown-linux-musl/release/np_client ./release/
cp ./target/x86_64-unknown-linux-musl/release/np_server ./release/
cp ./npipe/target/x86_64-unknown-linux-musl/release/np_client ./release/
cp ./npipe/target/x86_64-unknown-linux-musl/release/np_server ./release/
cd release
tar -czvf npipe.tar.gz *
cd ../
Expand Down

0 comments on commit 42eecd2

Please sign in to comment.