Skip to content

Commit

Permalink
fix artifact renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
DanEngelbrecht committed Sep 7, 2023
1 parent 7e37355 commit ab2c321
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-latest]
arch: [amd64]
arch: [amd64, arm64]
include:
- os: ubuntu-20.04
target: "./cmd/longtail/longtail"
Expand All @@ -23,11 +23,15 @@ jobs:
target: "./cmd/longtail/longtail"
platform: macos
tag: "${GITHUB_REF_NAME}"
arch: arm64
- os: windows-latest
target: "./cmd/longtail/longtail.exe"
platform: win32
tag: "${env:GITHUB_REF_NAME}"
exclude:
- os: ubuntu-20.04
arch: arm64
- os: windows-latest
arch: arm64

runs-on: ${{matrix.os}}

Expand Down Expand Up @@ -98,16 +102,26 @@ jobs:

- name: Rename artifacts
run: |
cp dist-linux-amd64/longtail longtail-linux-x64
cp dist-macos-amd64/longtail longtail-macos-x64
cp dist-macos-arm64/longtail longtail-macos-arm64
cp dist-win32-amd64/longtail.exe longtail-win32-x64.exe
mv dist-linux-amd64/longtail dist-linux-amd64/longtail-linux-x64
mv dist-macos-amd64/longtail dist-macos-amd64/longtail-macos-x64
mv dist-win32-amd64/longtail.exe dist-win32-amd64/longtail-win32-x64.exe
mv dist-linux-amd64 dist-linux-x64
mv dist-macos-amd64 dist-macos-x64
mv dist-win32-amd64 dist-win32-x64
- name: Set execute permission
run: |
chmod +x longtail-linux-x64
chmod +x longtail-macos-x64
chmod +x longtail-macos-arm64
chmod +x dist-linux-x64/longtail-linux-x64
chmod +x dist-macos-x64/longtail-macos-x64
chmod +x dist-macos-amd64/longtail-macos-amd64
- name: Copy executables
run: |
cp dist-linux-x64/longtail longtail-linux-x64
cp dist-macos-x64/longtail longtail-macos-x64
cp dist-macos-arm64/longtail longtail-macos-arm64
cp dist-win32-x64/longtail.exe longtail-win32-x64.exe
- name: Zip Linux artifacts
uses: montudor/[email protected]
Expand Down

0 comments on commit ab2c321

Please sign in to comment.