@@ -50,18 +50,17 @@ jobs:
5050 if : ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
5151 run : sudo apt install -y gcc-arm-linux-gnueabihf
5252
53- - name : Deploy
53+ - name : Build
5454 run : |
5555 rustup target add ${{ matrix.target }}
56-
57- # build and deploy CLI
5856 cargo build -p tmc-langs-cli --release --target ${{ matrix.target }}
59- gsutil cp ./target/${{ matrix.target }}/release/tmc-langs-cli gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-cli-${{ matrix.target }}-$TAG
60-
61- # build and deploy Node module
6257 npm --prefix ./crates/bindings/tmc-langs-node install
6358 npm --prefix ./crates/bindings/tmc-langs-node run build -- --release --target ${{ matrix.target }}
64- gsutil cp ./crates/bindings/tmc-langs-node/ts/functions.node gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-${{ matrix.target }}-$TAG.node
59+
60+ - name : Deploy
61+ run : |
62+ gsutil cp ./target/${{ matrix.target }}/release/tmc-langs-cli gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-cli-${{ matrix.target }}-$TAG
63+ gsutil cp ./crates/bindings/tmc-langs-node/ts/functions.node gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-${{ matrix.target }}-$TAG.node
6564
6665 windows :
6766 runs-on : windows-2022
9998 $env:python_version=$(python -c 'import sys; print(\".\".join(map(str, sys.version_info[:3])))')
10099 $env:CLOUDSDK_PYTHON="C:\hostedtoolcache\windows\Python\$env:python_version\x64\python"
101100 gsutil cp ./target/${{ matrix.target }}/release/tmc-langs-cli.exe gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-cli-${{ matrix.target }}-$Env:TAG.exe
102- gsutil cp ./crates/bindings/tmc-langs-node/ts/functions.node gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-${{ matrix.target }}-$Env:TAG.node
101+ gsutil cp ./crates/bindings/tmc-langs-node/ts/functions.node gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-${{ matrix.target }}-$Env:TAG.node
103102
104103 macos :
105104 runs-on : macos-11
@@ -132,8 +131,8 @@ jobs:
132131 npm --prefix ./crates/bindings/tmc-langs-node install
133132 npm run --prefix ./crates/bindings/tmc-langs-node build -- --release
134133 - name : Sign
135- run : codesign --force -s - target/release/tmc-langs-cli
134+ run : codesign --force -s - target/${{ matrix.target }}/ release/tmc-langs-cli
136135 - name : Deploy
137136 run : |
138- gsutil cp ./target/release/tmc-langs-cli gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-cli-${{ matrix.target }}-$TAG
137+ gsutil cp ./target/${{ matrix.target }}/ release/tmc-langs-cli gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-cli-${{ matrix.target }}-$TAG
139138 gsutil cp ./crates/bindings/tmc-langs-node/ts/functions.node gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-${{ matrix.target }}-$TAG.node
0 commit comments