mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 21:17:59 +00:00
CI: upload binaries to the same articact
This commit is contained in:
parent
cd946307db
commit
d0b5c0616e
24
.github/workflows/ci.yml
vendored
24
.github/workflows/ci.yml
vendored
@ -47,49 +47,39 @@ jobs:
|
|||||||
- name: Cross-compile Rolens for Windows
|
- name: Cross-compile Rolens for Windows
|
||||||
if: matrix.platform == 'windows-2022'
|
if: matrix.platform == 'windows-2022'
|
||||||
run: |
|
run: |
|
||||||
|
"built_on=windows" >> $env:GITHUB_ENV
|
||||||
mkdir releases
|
mkdir releases
|
||||||
wails build -platform windows/amd64
|
wails build -platform windows/amd64
|
||||||
tar -czvf releases\rolens-windows-10+-amd64.tar.gz --directory build\bin Rolens.exe
|
tar -czvf releases\rolens-windows-10+-amd64.tar.gz --directory build\bin Rolens.exe
|
||||||
"tar_amd64=rolens-windows-10+-amd64.tar.gz" >> $env:GITHUB_ENV
|
rmdir /s build\bin
|
||||||
rmdir /s ".\build\bin"
|
|
||||||
wails build -platform windows/arm64
|
wails build -platform windows/arm64
|
||||||
tar -czvf releases\rolens-windows-10+-arm64.tar.gz --directory build\bin Rolens.exe
|
tar -czvf releases\rolens-windows-10+-arm64.tar.gz --directory build\bin Rolens.exe
|
||||||
"tar_amd64=rolens-windows-10+-arm64.tar.gz" >> $env:GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Cross-compile Rolens for Darwin
|
- name: Cross-compile Rolens for Darwin
|
||||||
if: matrix.platform == 'macos-12'
|
if: matrix.platform == 'macos-12'
|
||||||
run: |
|
run: |
|
||||||
|
echo "built_on=macos" >> "$GITHUB_ENV"
|
||||||
mkdir releases
|
mkdir releases
|
||||||
wails build -platform darwin/amd64
|
wails build -platform darwin/amd64
|
||||||
tar -czvf releases/rolens-macos-10.13+-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=rolens-macos-10.13+-amd64.tar.gz" >> "$GITHUB_ENV"
|
|
||||||
rm -rf build/bin
|
rm -rf build/bin
|
||||||
wails build -platform darwin/arm64
|
wails build -platform darwin/arm64
|
||||||
tar -czvf releases/rolens-11.0+-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=rolens-11.0+-arm64.tar.gz" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Cross-compile Rolens for Linux
|
- name: Cross-compile Rolens for Linux
|
||||||
if: matrix.platform == 'ubuntu-22.04'
|
if: matrix.platform == 'ubuntu-22.04'
|
||||||
run: |
|
run: |
|
||||||
|
echo "built_on=linux" >> "$GITHUB_ENV"
|
||||||
mkdir releases
|
mkdir releases
|
||||||
wails build -platform linux/amd64
|
wails build -platform linux/amd64
|
||||||
tar -czvf releases/rolens-linux-amd64.tar.gz --directory build/bin Rolens
|
tar -czvf releases/rolens-linux-amd64.tar.gz --directory build/bin Rolens
|
||||||
echo "tar_amd64=rolens-linux-amd64.tar.gz" >> "$GITHUB_ENV"
|
|
||||||
# rm -rf build/bin
|
# rm -rf build/bin
|
||||||
# wails build -platform linux/arm64
|
# wails build -platform linux/arm64
|
||||||
# tar -czvf releases/rolens-linux-arm64.tar.gz --directory build/bin Rolens
|
# tar -czvf releases/rolens-linux-arm64.tar.gz --directory build/bin Rolens
|
||||||
# echo "tar_arm64=rolens-linux-arm64.tar.gz" >> "$GITHUB_ENV"
|
|
||||||
|
|
||||||
- name: Upload generated amd64 binary
|
- name: Upload generated binaries
|
||||||
if: env.tar_amd64
|
if: env.tar_amd64
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ env.tar_amd64 }}
|
name: rolens-${{ env.built_on }}
|
||||||
path: releases/${{ env.tar_amd64 }}
|
path: releases/*
|
||||||
|
|
||||||
- name: Upload generated arm64 binary
|
|
||||||
if: env.rat_arm64
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: ${{ env.tar_arm64 }}
|
|
||||||
path: releases/${{ env.tar_arm64 }}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user