Skip to content

Commit

Permalink
Refactor build workflows for Android, Linux, and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjay7178 committed Aug 23, 2024
1 parent 110afd2 commit c397c9d
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 19 deletions.
3 changes: 0 additions & 3 deletions ,gitignore

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
types: [created]

jobs:
build:
name: Build
build-android:
name: build-android
runs-on: ubuntu-latest

steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/go_commit_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ on:

jobs:

build:
build-go:
name: build-commit-pr-go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
types: [created]

jobs:
build:
name: Build
build-linux:
name: build-linux
runs-on: ubuntu-latest

steps:
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
build-windows:
name: Build Windows
name: build-windows
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -33,23 +33,23 @@ jobs:
with:
name: windows
path: |
fyne-cross/dist/windows-amd64/
fyne-cross/dist/windows-386/
fyne-cross/dist/windows-arm64/
fyne-cross/bin/windows-amd64/
fyne-cross/bin/windows-386/
fyne-cross/bin/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 }}_amd64.exe
mv fyne-cross/dist/windows-386/${{ env.APP_NAME }}.exe fyne-cross/dist/windows-386/${{ env.APP_NAME }}_${{ github.ref_name }}_386.exe
mv fyne-cross/dist/windows-arm64/${{ env.APP_NAME }}.exe fyne-cross/dist/windows-arm64/${{ env.APP_NAME }}_${{ github.ref_name }}_arm64.exe
mv fyne-cross/bin/windows-amd64/${{ env.APP_NAME }}.exe fyne-cross/bin/windows-amd64/${{ env.APP_NAME }}_${{ github.ref_name }}_amd64.exe
mv fyne-cross/bin/windows-386/${{ env.APP_NAME }}.exe fyne-cross/bin/windows-386/${{ env.APP_NAME }}_${{ github.ref_name }}_386.exe
mv fyne-cross/bin/windows-arm64/${{ env.APP_NAME }}.exe fyne-cross/bin/windows-arm64/${{ env.APP_NAME }}_${{ github.ref_name }}_arm64.exe
- name: Upload to Release
uses: softprops/action-gh-release@v1
with:
files: |
fyne-cross/dist/windows-amd64/${{ env.APP_NAME }}_${{ github.ref_name }}_amd64.exe
fyne-cross/dist/windows-386/${{ env.APP_NAME }}_${{ github.ref_name }}_386.exe
fyne-cross/dist/windows-arm64/${{ env.APP_NAME }}_${{ github.ref_name }}_arm64.exe
fyne-cross/bin/windows-amd64/${{ env.APP_NAME }}_${{ github.ref_name }}_amd64.exe
fyne-cross/bin/windows-386/${{ env.APP_NAME }}_${{ github.ref_name }}_386.exe
fyne-cross/bin/windows-arm64/${{ env.APP_NAME }}_${{ github.ref_name }}_arm64.exe
token: ${{ secrets.TOKEN }}

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
tmp/
test/
fyne-cross/
.env
.secrets
bin/*
2 changes: 1 addition & 1 deletion FyneApp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Website = "https://github.com/sanjay7178/captive-control"
Name = "OpenFortiAP_Authenticator"
ID = "com.sanjay7178.openfortiap"
Version = "1.0.0"
Build = 3
Build = 13
4 changes: 4 additions & 0 deletions captive-control/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
build/bin
node_modules
frontend/dist
.env
.secrets
bin
fyne-cross/*

0 comments on commit c397c9d

Please sign in to comment.