Skip to content

Commit 2d2e6ed

Browse files
committed
Attempt to remove deprecated runner from upload workflow
1 parent 23a8252 commit 2d2e6ed

File tree

1 file changed

+3
-38
lines changed

1 file changed

+3
-38
lines changed

.github/workflows/upload-binaries.yml

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -106,42 +106,6 @@ jobs:
106106
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
107107
gsutil cp bindings/tmc-langs-node/ts/functions.node gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-${{ matrix.target }}-$Env:TAG.node
108108
109-
macos:
110-
runs-on: macos-10.15
111-
steps:
112-
- name: Checkout
113-
uses: actions/checkout@v3
114-
- name: Install Rust
115-
uses: actions-rs/toolchain@v1
116-
with:
117-
profile: minimal
118-
toolchain: stable
119-
- name: Cache
120-
uses: Swatinem/rust-cache@v2
121-
- name: Node
122-
uses: actions/setup-node@v3
123-
with:
124-
node-version: "16"
125-
- id: 'auth'
126-
uses: 'google-github-actions/auth@v1'
127-
with:
128-
project_id: ${{ secrets.GCP_PROJECT_ID }}
129-
credentials_json: ${{ secrets.GCP_SA_KEY }}
130-
- name: 'Set up Cloud SDK'
131-
uses: 'google-github-actions/setup-gcloud@v1'
132-
133-
- name: Cargo build
134-
run: |
135-
cargo build -p tmc-langs-cli --release
136-
npm --prefix ./bindings/tmc-langs-node install
137-
npm run --prefix ./bindings/tmc-langs-node build -- --release
138-
- name: Sign
139-
run: codesign --force -s - target/release/tmc-langs-cli
140-
- name: Deploy
141-
run: |
142-
gsutil cp target/release/tmc-langs-cli gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-cli-x86_64-apple-darwin-$TAG
143-
gsutil cp bindings/tmc-langs-node/ts/functions.node gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-x86_64-apple-darwin-$TAG.node
144-
145109
macos-11:
146110
runs-on: macos-11
147111
steps:
@@ -175,5 +139,6 @@ jobs:
175139
run: codesign --force -s - target/release/tmc-langs-cli
176140
- name: Deploy
177141
run: |
178-
gsutil cp target/release/tmc-langs-cli gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-cli-aarch64-apple-darwin-$TAG
179-
gsutil cp bindings/tmc-langs-node/ts/functions.node gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-aarch64-apple-darwin-$TAG.node
142+
rustup target add ${{ matrix.target }}
143+
gsutil cp target/release/tmc-langs-cli gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-cli-${{ matrix.target }}-$TAG
144+
gsutil cp bindings/tmc-langs-node/ts/functions.node gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-${{ matrix.target }}-$TAG.node

0 commit comments

Comments
 (0)