mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 21:17:59 +00:00
CI: correct upload artifact step
This commit is contained in:
parent
5463b1a2c4
commit
4b618f9b25
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
@ -45,40 +45,48 @@ jobs:
|
||||
cache-dependency-path: frontend/package-lock.json
|
||||
|
||||
- name: Cross-compile Rolens for Windows
|
||||
if: matrix.platform == 'windows-2022'
|
||||
run: |
|
||||
mkdir releases
|
||||
wails build -platform windows/amd64
|
||||
tar -czvf releases\rolens-${{ matrix.platform }}-amd64.tar.gz --directory build\bin Rolens.exe
|
||||
tar -czvf releases\rolens-windows-10+-amd64.tar.gz --directory build\bin Rolens.exe
|
||||
"tar_amd64=releases/rolens-windows-10+-amd64.tar.gz" >> $env:GITHUB_ENV
|
||||
rmdir build\bin
|
||||
wails build -platform windows/arm64
|
||||
tar -czvf releases\rolens-${{ matrix.platform }}-arm64.tar.gz --directory build\bin Rolens.exe
|
||||
tar -czvf releases\rolens-windows-10+-arm64.tar.gz --directory build\bin Rolens.exe
|
||||
"tar_amd64=releases/rolens-windows-10+-arm64.tar.gz" >> $env:GITHUB_ENV
|
||||
|
||||
- name: Cross-compile Rolens for Darwin
|
||||
if: matrix.platform == 'macos-12'
|
||||
run: |
|
||||
mkdir releases
|
||||
wails build -platform darwin/amd64
|
||||
tar -czvf releases/rolens-${{ matrix.platform }}-amd64.tar.gz --directory build/bin Rolens.app
|
||||
tar -czvf releases/rolens-macos-10.13+-amd64.tar.gz --directory build/bin Rolens.app
|
||||
echo "tar_amd64=releases/rolens-macos-10.13+-amd64.tar.gz" >> "$GITHUB_ENV"
|
||||
rm -rf build/bin
|
||||
wails build -platform darwin/arm64
|
||||
tar -czvf releases/rolens-${{ matrix.platform }}-arm64.tar.gz --directory build/bin Rolens.app
|
||||
tar -czvf releases/rolens-11.0+-arm64.tar.gz --directory build/bin Rolens.app
|
||||
echo "tar_amd64=releases/releases/rolens-11.0+-arm64.tar.gz" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Cross-compile Rolens for Linux
|
||||
run: |
|
||||
mkdir releases
|
||||
wails build -platform darwin/amd64
|
||||
tar -czvf releases/rolens-${{ matrix.platform }}-amd64.tar.gz --directory build/bin Rolens
|
||||
tar -czvf releases/rolens-linux-amd64.tar.gz --directory build/bin Rolens
|
||||
echo "tar_amd64=releases/rolens-linux-amd64.tar.gz" >> "$GITHUB_ENV"
|
||||
rm -rf build/bin
|
||||
wails build -platform windows/arm64
|
||||
tar -czvf releases/rolens-${{ matrix.platform }}-arm64.tar.gz --directory build/bin Rolens
|
||||
tar -czvf releases/rolens-linux-arm64.tar.gz --directory build/bin Rolens
|
||||
echo "tar_arm64=releases/rolens-linux-arm64.tar.gz" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Upload generated amd64 binary
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: rolens-${{ matrix.platform }}-amd64
|
||||
path: releases/rolens-${{ matrix.platform }}-amd64.tar.gz
|
||||
name: ${{ env.tar_amd64 }}
|
||||
path: releases/${{ env.tar_amd64 }}
|
||||
|
||||
- name: Upload generated arm64 binary
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: rolens-${{ matrix.platform }}-arm64
|
||||
path: releases/rolens-${{ matrix.platform }}-arm64.tar.gz
|
||||
name: ${{ env.tar_arm64 }}
|
||||
path: releases/${{ env.tar_arm64 }}
|
||||
|
Loading…
Reference in New Issue
Block a user