Skip to content

Commit 4edf145

Browse files
committed
Use target triple artifact names
1 parent a83ec3b commit 4edf145

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ jobs:
2929
matrix:
3030
include:
3131
- os: ubuntu-latest
32+
env:
33+
TARGET_TRIPLE: x86_64-unknown-linux-gnu
3234
- os: macos-latest
35+
env:
36+
TARGET_TRIPLE: x86_64-apple-darwin
3337
# cross-compile from Linux to Windows using mingw
3438
- os: ubuntu-latest
3539
env:
@@ -112,7 +116,7 @@ jobs:
112116
if: matrix.env.TARGET_TRIPLE != 'x86_64-pc-windows-gnu'
113117
uses: actions/upload-artifact@v2
114118
with:
115-
name: cg_clif-${{ runner.os }}
119+
name: ${{ matrix.env.TARGET_TRIPLE }}
116120
path: cg_clif.tar.xz
117121

118122
- name: Upload prebuilt cg_clif (cross compile)
@@ -132,6 +136,8 @@ jobs:
132136
include:
133137
# Native Windows build with MSVC
134138
- os: windows-latest
139+
env:
140+
TARGET_TRIPLE: x86_64-pc-windows-msvc
135141
# cross-compile from Windows to Windows MinGW
136142
- os: windows-latest
137143
env:
@@ -211,5 +217,5 @@ jobs:
211217
- name: Upload prebuilt cg_clif
212218
uses: actions/upload-artifact@v2
213219
with:
214-
name: cg_clif-${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}
220+
name: ${{ matrix.env.TARGET_TRIPLE }}
215221
path: cg_clif.tar

0 commit comments

Comments
 (0)