Skip to content

Commit

Permalink
Refactor workflow files for Android, Linux, and Windows builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay7178 committed Aug 22, 2024
1 parent 548d351 commit 5fbb3ec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- name: Build for Android
run: |
fyne-cross android
fyne-cross android -arch=*
- name: Read TOML and set env vars
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: go install github.com/fyne-io/fyne-cross@latest

- name: Build for Linux
run: fyne-cross linux
run: fyne-cross linux -arch=amd64

- name: Read TOML and set env vars
run: |
Expand Down
14 changes: 11 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: go install github.com/fyne-io/fyne-cross@latest

- name: Build for Windows
run: fyne-cross windows
run: fyne-cross windows -arch=*

- name: Read TOML and set env vars
run: |
Expand All @@ -32,14 +32,22 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: windows
path: fyne-cross/dist/windows-amd64/
path: |
fyne-cross/dist/windows-amd64/
fyne-cross/dist/windows-386/
fyne-cross/dist/windows-arm64/
- name: Rename exe file
run: |
mv fyne-cross/dist/windows-amd64/${{ env.APP_NAME }}.exe fyne-cross/dist/windows-amd64/${{ env.APP_NAME }}_${{ github.ref_name }}.exe
mv fyne-cross/dist/windows-386/${{ env.APP_NAME }}.exe fyne-cross/dist/windows-386/${{ env.APP_NAME }}_${{ github.ref_name }}.exe
mv fyne-cross/dist/windows-arm64/${{ env.APP_NAME }}.exe fyne-cross/dist/windows-arm64/${{ env.APP_NAME }}_${{ github.ref_name }}.exe
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: fyne-cross/dist/windows-amd64/${{ env.APP_NAME }}_${{ github.ref_name }}.exe
files: |
fyne-cross/dist/windows-amd64/${{ env.APP_NAME }}_${{ github.ref_name }}.exe
fyne-cross/dist/windows-386/${{ env.APP_NAME }}_${{ github.ref_name }}.exe
fyne-cross/dist/windows-arm64/${{ env.APP_NAME }}_${{ github.ref_name }}.exe

0 comments on commit 5fbb3ec

Please sign in to comment.