Skip to content

Commit

Permalink
run npm install in cli upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Heliozoa committed Jun 7, 2021
1 parent d1cac1c commit 035b866
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/upload-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
run: |
rustup target add ${{ matrix.target }}
cargo build -p tmc-langs-cli --release --verbose --target ${{ matrix.target }}
npm --prefix ./bindings/tmc-langs-node install
npm --prefix ./bindings/tmc-langs-node run build -- --release --verbose --target ${{ matrix.target }}
- name: Deploy
run: |
Expand All @@ -56,6 +57,7 @@ jobs:
rustup target add ${{ matrix.target }}
$env:RUSTFLAGS="-C target-feature=+crt-static"
cargo build -p tmc-langs-cli --release --verbose --target ${{ matrix.target }}
npm --prefix ./bindings/tmc-langs-node install
npm run --prefix ./bindings/tmc-langs-node build -- --release --verbose --target ${{ matrix.target }}
- name: Deploy
run: |
Expand All @@ -76,7 +78,10 @@ jobs:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}
- name: Cargo build
run: cargo build -p tmc-langs-cli --release --verbose
run: |
cargo build -p tmc-langs-cli --release --verbose
npm --prefix ./bindings/tmc-langs-node install
npm run --prefix ./bindings/tmc-langs-node build -- --release --verbose
- name: Sign
run: codesign --force -s - target/release/tmc-langs-cli
- name: Deploy
Expand All @@ -103,6 +108,7 @@ jobs:
rustup target add ${{ matrix.target }}
cargo install cross
cross build -p tmc-langs-cli --release --verbose --target ${{ matrix.target }}
npm --prefix ./bindings/tmc-langs-node install
npm --prefix ./bindings/tmc-langs-node run cross --release --verbose --target ${{ matrix.target }}
- name: Deploy
run: |
Expand Down

0 comments on commit 035b866

Please sign in to comment.