Skip to content

Commit 6773f83

Browse files
committed
run CI on macos-11
1 parent 329322e commit 6773f83

File tree

7 files changed

+115
-79
lines changed

7 files changed

+115
-79
lines changed

.github/workflows/doc.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,15 @@ jobs:
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v2
14+
- name: Install Rust
15+
uses: actions-rs/toolchain@v1
1416
with:
15-
persist-credentials: false
17+
profile: minimal
18+
toolchain: stable
19+
- name: Cache
20+
uses: Swatinem/rust-cache@v1
1621

17-
- name: Install and build
22+
- name: Build docs
1823
run: cargo doc
1924

2025
- name: Copy index to target/doc

.github/workflows/upload-binaries.yml

Lines changed: 44 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,21 @@ jobs:
2121
armv7-unknown-linux-gnueabihf,
2222
]
2323
steps:
24-
- uses: actions/checkout@v2
25-
- uses: actions/setup-node@v2
24+
- name: Checkout
25+
uses: actions/checkout@v2
26+
- name: Install Rust
27+
uses: actions-rs/toolchain@v1
28+
with:
29+
profile: minimal
30+
toolchain: stable
31+
- name: Cache
32+
uses: Swatinem/rust-cache@v1
33+
- name: Node
34+
uses: actions/setup-node@v2
2635
with:
2736
node-version: "16"
28-
- uses: google-github-actions/setup-gcloud@master
37+
- name: GCloud
38+
uses: google-github-actions/setup-gcloud@master
2939
with:
3040
project_id: ${{ secrets.GCP_PROJECT_ID }}
3141
service_account_key: ${{ secrets.GCP_SA_KEY }}
@@ -46,7 +56,7 @@ jobs:
4656
rustup target add ${{ matrix.target }}
4757
4858
# build and deploy CLI
49-
cargo build -p tmc-langs-cli --release --verbose --target ${{ matrix.target }}
59+
cargo build -p tmc-langs-cli --release --target ${{ matrix.target }}
5060
gsutil cp target/${{ matrix.target }}/release/tmc-langs-cli gs://${{ secrets.GCP_BUCKET }}/tmc-langs-rust/tmc-langs-cli-${{ matrix.target }}-$TAG
5161
5262
# build and deploy Node module
@@ -60,19 +70,30 @@ jobs:
6070
matrix:
6171
target: [i686-pc-windows-msvc, x86_64-pc-windows-msvc]
6272
steps:
63-
- uses: actions/checkout@v2
64-
- uses: actions/setup-node@v2
73+
- name: Checkout
74+
uses: actions/checkout@v2
75+
- name: Install Rust
76+
uses: actions-rs/toolchain@v1
77+
with:
78+
profile: minimal
79+
toolchain: stable
80+
- name: Cache
81+
uses: Swatinem/rust-cache@v1
82+
- name: Node
83+
uses: actions/setup-node@v2
6584
with:
6685
node-version: "16"
67-
- uses: google-github-actions/setup-gcloud@master
86+
- name: GCloud
87+
uses: google-github-actions/setup-gcloud@master
6888
with:
6989
project_id: ${{ secrets.GCP_PROJECT_ID }}
7090
service_account_key: ${{ secrets.GCP_SA_KEY }}
91+
7192
- name: Build
7293
run: |
7394
rustup target add ${{ matrix.target }}
7495
$env:RUSTFLAGS="-C target-feature=+crt-static" # crt-static is set with RUSTFLAGS to statically link MSVCRT (VCRUNTIME140.dll)
75-
cargo build -p tmc-langs-cli --release --verbose --target ${{ matrix.target }}
96+
cargo build -p tmc-langs-cli --release --target ${{ matrix.target }}
7697
cd ./bindings/tmc-langs-node && npm install && npm run build -- --release --target ${{ matrix.target }}
7798
- name: Deploy
7899
run: |
@@ -84,17 +105,28 @@ jobs:
84105
macos:
85106
runs-on: macos-latest
86107
steps:
87-
- uses: actions/checkout@v2
88-
- uses: actions/setup-node@v2
108+
- name: Checkout
109+
uses: actions/checkout@v2
110+
- name: Install Rust
111+
uses: actions-rs/toolchain@v1
112+
with:
113+
profile: minimal
114+
toolchain: stable
115+
- name: Cache
116+
uses: Swatinem/rust-cache@v1
117+
- name: Node
118+
uses: actions/setup-node@v2
89119
with:
90120
node-version: "16"
91-
- uses: google-github-actions/setup-gcloud@master
121+
- name: GCloud
122+
uses: google-github-actions/setup-gcloud@master
92123
with:
93124
project_id: ${{ secrets.GCP_PROJECT_ID }}
94125
service_account_key: ${{ secrets.GCP_SA_KEY }}
126+
95127
- name: Cargo build
96128
run: |
97-
cargo build -p tmc-langs-cli --release --verbose
129+
cargo build -p tmc-langs-cli --release
98130
npm --prefix ./bindings/tmc-langs-node install
99131
npm run --prefix ./bindings/tmc-langs-node build -- --release
100132
- name: Sign

0 commit comments

Comments
 (0)