Skip to content

Commit 7f56bab

Browse files
committed
ci: build for more os
1 parent 38a429e commit 7f56bab

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/build-dev.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
targets:
22+
targets:
23+
- { os: macos-11 , target: aarch64-apple-darwin }
2324
- { os: macos-12 , target: aarch64-apple-darwin }
25+
- { os: ubuntu-20.04, target: x86_64-unknown-linux-gnu }
2426
- { os: ubuntu-22.04, target: x86_64-unknown-linux-gnu }
27+
- { os: windows-2019, target: x86_64-pc-windows-msvc }
2528
- { os: windows-2022, target: x86_64-pc-windows-msvc }
2629

2730
steps:
@@ -79,7 +82,7 @@ jobs:
7982
- name: Generate artifacts name
8083
id: gen-name
8184
shell: bash
82-
run: echo 'NAME=${{ matrix.targets.target }}' >> $GITHUB_OUTPUT
85+
run: echo 'NAME=${{ matrix.targets.target }}@${{ matrix.targets.os }}' >> $GITHUB_OUTPUT
8386

8487
- name: Generate binary extension
8588
id: gen-ext

.github/workflows/build-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
targets:
16+
targets:
17+
- { os: macos-11 , target: aarch64-apple-darwin }
1718
- { os: macos-12 , target: aarch64-apple-darwin }
19+
- { os: ubuntu-20.04, target: x86_64-unknown-linux-gnu }
1820
- { os: ubuntu-22.04, target: x86_64-unknown-linux-gnu }
21+
- { os: windows-2019, target: x86_64-pc-windows-msvc }
1922
- { os: windows-2022, target: x86_64-pc-windows-msvc }
2023

2124
steps:
@@ -59,7 +62,7 @@ jobs:
5962
- name: Generate artifacts name
6063
id: gen-name
6164
shell: bash
62-
run: echo 'NAME=${{ matrix.targets.target }}' >> $GITHUB_OUTPUT
65+
run: echo 'NAME=${{ matrix.targets.target }}@${{ matrix.targets.os }}' >> $GITHUB_OUTPUT
6366

6467
- name: Generate binary extension
6568
id: gen-ext

0 commit comments

Comments
 (0)