diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 374e8ad..dc3e850 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,48 +2,17 @@ name: Build on: push: - branches: [master] pull_request: - branches: [master] workflow_dispatch: jobs: build: + strategy: + fail-fast: false runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Setup Go environment - uses: actions/setup-go@v2.1.4 - with: - go-version: 1.18 - - name: Setup Node.js - uses: actions/setup-node@v1 - with: - node-version: 14.x - - name: Install Wails - if: inputs.build == 'true' - run: go install github.com/wailsapp/wails/v2/cmd/wails@${{inputs.wails-version}} - shell: bash - - name: Install Linux Wails deps - if: inputs.build == 'true' && runner.os == 'Linux' - run: sudo apt-get update && sudo apt-get install libgtk-3-0 libwebkit2gtk-4.0-dev gcc-aarch64-linux-gnu - shell: bash - - name: Install macOS Wails deps - if: runner.os == 'macOS' - run: brew install mitchellh/gon/gon - shell: bash - - name: Build App - if: inputs.build == 'true' && runner.os == 'macOS' - working-directory: ${{ inputs.app-working-directory }} - run: wails build --platform ${{inputs.build-platform}} -webview2 ${{inputs.wails-build-webview2}} -o ${{inputs.build-name}} - shell: bash - - name: Build App - if: inputs.build == 'true' && runner.os == 'Linux' - working-directory: ${{ inputs.app-working-directory }} - run: wails build --platform ${{inputs.build-platform}} -webview2 ${{inputs.wails-build-webview2}} -o ${{inputs.build-name}} - shell: bash - - name: Build App - if: inputs.build == 'true' && runner.os == 'Windows' - working-directory: ${{ inputs.app-working-directory }} - run: wails build --platform ${{inputs.build-platform}} -webview2 ${{inputs.wails-build-webview2}} -o ${{inputs.build-name}} - shell: bash \ No newline at end of file + - uses: actions/checkout@v2 + - with: + build-name: strimertul + build-platform: linux/amd64 + package: false \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aee2c67..e4212a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,8 @@ on: push: tags: - "v*.*.*" + - "v*.*.*-beta.*" + - "v*.*.*-rc.*" jobs: build: @@ -11,16 +13,17 @@ jobs: fail-fast: false matrix: build: [ - {name: strimertul, platform: linux/amd64, os: ubuntu-latest}, - {name: strimertul, platform: windows/amd64, os: windows-latest}, - {name: strimertul, platform: darwin/universal, os: macos-latest} + { platform: linux/amd64, os: ubuntu-latest }, + { platform: windows/amd64, os: windows-latest }, + { platform: darwin/universal, os: macos-latest } ] runs-on: ${{ matrix.build.os }} steps: - uses: actions/checkout@v2 + - uses: ashkeel/wails-build-action@3c97c67b0b1afec7ece65ce789a405918d4ec45e with: - submodules: recursive - - uses: dAppServer/wails-build-action@v2 - with: - build-name: ${{ matrix.build.name }} + build-name: strimertul build-platform: ${{ matrix.build.platform }} + windows-nsis-installer: false + macos-package-type: dmg + go-version: 1.19