From 4edf14520aaa7e2d506afa470d9b8b1f9999b8f8 Mon Sep 17 00:00:00 2001 From: Afonso Bordado Date: Tue, 27 Sep 2022 12:29:52 +0100 Subject: [PATCH] Use target triple artifact names --- .github/workflows/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7f6cfd2ccc56..5655f466d749 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -29,7 +29,11 @@ jobs: matrix: include: - os: ubuntu-latest + env: + TARGET_TRIPLE: x86_64-unknown-linux-gnu - os: macos-latest + env: + TARGET_TRIPLE: x86_64-apple-darwin # cross-compile from Linux to Windows using mingw - os: ubuntu-latest env: @@ -112,7 +116,7 @@ jobs: if: matrix.env.TARGET_TRIPLE != 'x86_64-pc-windows-gnu' uses: actions/upload-artifact@v2 with: - name: cg_clif-${{ runner.os }} + name: ${{ matrix.env.TARGET_TRIPLE }} path: cg_clif.tar.xz - name: Upload prebuilt cg_clif (cross compile) @@ -132,6 +136,8 @@ jobs: include: # Native Windows build with MSVC - os: windows-latest + env: + TARGET_TRIPLE: x86_64-pc-windows-msvc # cross-compile from Windows to Windows MinGW - os: windows-latest env: @@ -211,5 +217,5 @@ jobs: - name: Upload prebuilt cg_clif uses: actions/upload-artifact@v2 with: - name: cg_clif-${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }} + name: ${{ matrix.env.TARGET_TRIPLE }} path: cg_clif.tar