Skip to content

Commit be0fcec

Browse files
committed
perf: Use ubuntu-latest + webkit2gtk-4.1 for faster Linux builds
1 parent df57dc2 commit be0fcec

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
platform: windows/amd64
2828
output: SurfManager-windows-amd64.exe
2929
name: windows-amd64
30-
- os: ubuntu-20.04
30+
- os: ubuntu-latest
3131
platform: linux/amd64
3232
output: SurfManager-linux-amd64
3333
name: linux-amd64
@@ -82,11 +82,17 @@ jobs:
8282
if: steps.filter.outputs.skip == 'false' && startsWith(matrix.os, 'ubuntu')
8383
run: |
8484
sudo apt-get update
85-
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev
85+
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
8686
8787
- name: Build
8888
if: steps.filter.outputs.skip == 'false'
89-
run: wails build -platform ${{ matrix.platform }} -o ${{ matrix.output }}
89+
shell: bash
90+
run: |
91+
if [[ "${{ matrix.os }}" == ubuntu-* ]]; then
92+
wails build -platform ${{ matrix.platform }} -o ${{ matrix.output }} -tags webkit2_41
93+
else
94+
wails build -platform ${{ matrix.platform }} -o ${{ matrix.output }}
95+
fi
9096
9197
- name: Package macOS App
9298
if: steps.filter.outputs.skip == 'false' && startsWith(matrix.os, 'macos')

0 commit comments

Comments
 (0)