diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c97900d..9e67d0b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,9 +2,14 @@ name: Wails build on: push: + branches: + - main tags: - # Match any new tag + # Match any new tag - '*' + pull_request: + branches: + - main env: # Necessary for most environments as build failure can occur due to OOM issues @@ -13,24 +18,24 @@ env: jobs: build: strategy: - # Failure in one platform build won't impact the others + # Failure in one platform build won't impact the others fail-fast: false matrix: build: - name: 'App' - platform: 'linux/amd64' + platform: 'linux/amd64' os: 'ubuntu-latest' - name: 'App' - platform: 'windows/amd64' + platform: 'windows/amd64' os: 'windows-latest' - name: 'App' - platform: 'darwin/universal' + platform: 'darwin/universal' os: 'macos-latest' runs-on: ${{ matrix.build.os }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: submodules: recursive diff --git a/.github/workflows/wails.yml b/.github/workflows/wails.yml deleted file mode 100644 index c97900d..0000000 --- a/.github/workflows/wails.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: Wails build - -on: - push: - tags: - # Match any new tag - - '*' - -env: - # Necessary for most environments as build failure can occur due to OOM issues - NODE_OPTIONS: "--max-old-space-size=4096" - -jobs: - build: - strategy: - # Failure in one platform build won't impact the others - fail-fast: false - matrix: - build: - - name: 'App' - platform: 'linux/amd64' - os: 'ubuntu-latest' - - name: 'App' - platform: 'windows/amd64' - os: 'windows-latest' - - name: 'App' - platform: 'darwin/universal' - os: 'macos-latest' - - runs-on: ${{ matrix.build.os }} - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Build wails - uses: dAppServer/wails-build-action@v2.2 - id: build - with: - build-name: ${{ matrix.build.name }} - build-platform: ${{ matrix.build.platform }} - package: false - go-version: '1.20'