Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit

Permalink
Add multi-arch builds
Browse files Browse the repository at this point in the history
  • Loading branch information
charlie-haley authored Apr 22, 2021
1 parent d566af8 commit ba2a0d6
Showing 1 changed file with 70 additions and 7 deletions.
77 changes: 70 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: GO111MODULE=on go get -u github.com/wailsapp/wails/cmd/wails
- name: Update to prerelease
run: wails update -pre
# Compile wails app
# Compile wails app for darwin/amd64
- name: Build project
if: ${{ !env.ACT }}
run: |
Expand All @@ -45,11 +45,6 @@ jobs:
run: |
cd ./src/flowcontrol
wails build
# DEBUG remove
- name: Build project
run: |
sudo apt-get -y install tree
tree ./src/flowcontrol/build
# Setup dotnet
- uses: actions/setup-dotnet@v1
with:
Expand Down Expand Up @@ -88,7 +83,7 @@ jobs:
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /home/runner/work/flowcontrol.zip
asset_name: flowcontrol-winx64.zip
asset_name: flowcontrol-win-x64.zip
asset_content_type: application/zip
- name: Upload firmware asset
id: upload-firmware-asset
Expand All @@ -101,3 +96,71 @@ jobs:
asset_path: /home/runner/work/firmware.zip
asset_name: firmware.zip
asset_content_type: application/zip
##Build OSX
# Cleardown old build
- name: Clear old assets
run: |
rm -Rf ./src/flowcontrol/build
rm -Rf /home/runner/work/flowcontrol.zip
- name: Build flowcontrol-monitor
working-directory: ./src/flowcontrol-monitor
run: dotnet publish -r osx-x64 -c Release /p:PublishSingleFile=true --self-contained True
- name: Copy compiled files
run: cp -r ./src/flowcontrol-monitor/bin/Release/net5.0/osx-x64/publish/ ./src/flowcontrol/build
# Compile wails app
- name: Build project
if: ${{ !env.ACT }}
run: |
cd ./src/flowcontrol
wails build -x darwin/amd64 --verbose
#Zip assets
- name: Zip assets
run: |
zip -rj flowcontrol.zip ./src/flowcontrol/build
cp flowcontrol.zip /home/runner/work/flowcontrol.zip
#Upload release assets
- name: Upload OSX desktop app asset
id: upload-osx-desktop-asset
uses: actions/upload-release-asset@v1
if: ${{ !env.ACT }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /home/runner/work/flowcontrol.zip
asset_name: flowcontrol-osx-x64.zip
asset_content_type: application/zip
##Build Linux
# Cleardown old build
- name: Clear old assets
run: |
rm -Rf ./src/flowcontrol/build
rm -Rf /home/runner/work/flowcontrol.zip
- name: Build flowcontrol-monitor
working-directory: ./src/flowcontrol-monitor
run: dotnet publish -r linux-x64 -c Release /p:PublishSingleFile=true --self-contained True
- name: Copy compiled files
run: cp -r ./src/flowcontrol-monitor/bin/Release/net5.0/linux-x64/publish/ ./src/flowcontrol/build
# Compile wails app
- name: Build project
if: ${{ !env.ACT }}
run: |
cd ./src/flowcontrol
wails build -x linux/amd64 --verbose
#Zip assets
- name: Zip assets
run: |
zip -rj flowcontrol.zip ./src/flowcontrol/build
cp flowcontrol.zip /home/runner/work/flowcontrol.zip
#Upload release assets
- name: Upload OSX desktop app asset
id: upload-linux-desktop-asset
uses: actions/upload-release-asset@v1
if: ${{ !env.ACT }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /home/runner/work/flowcontrol.zip
asset_name: flowcontrol-linux-x64.zip
asset_content_type: application/zip

0 comments on commit ba2a0d6

Please sign in to comment.