diff --git a/.github/workflows/lethean-desktop.yml b/.github/workflows/lethean-desktop.yml index 72da9b1..54fa14c 100644 --- a/.github/workflows/lethean-desktop.yml +++ b/.github/workflows/lethean-desktop.yml @@ -16,10 +16,28 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" - build: + ubuntu-latest: # The type of runner that the job will run on runs-on: ubuntu-latest + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + with: + repository: 'letheanVPN/desktop' + submodules: recursive + - uses: dAppServer/wails-build-action@main + with: + build-name: lethean + build-platform: linux/amd64 + build-tags: webkit2_41 + wails-build-webview2: "embed" + wails-version: v2.3.1 + ubuntu2004: + # The type of runner that the job will run on + runs-on: ubuntu-20.04 + # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it diff --git a/action.yml b/action.yml index 0f719e0..e108975 100644 --- a/action.yml +++ b/action.yml @@ -133,9 +133,13 @@ runs: 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' + if: inputs.build == 'true' && runner.os == 'Linux' && !contains(inputs.build-tags, 'webkit2_41') run: sudo apt-get update && sudo apt-get install libgtk-3-0 libwebkit2gtk-4.0-dev gcc-aarch64-linux-gnu shell: bash + - name: Install Linux Wails deps + if: inputs.build == 'true' && runner.os == 'Linux' && contains(inputs.build-tags, 'webkit2_41') + run: sudo apt-get update && sudo apt-get install libgtk-3-0 libwebkit2gtk-4.1-dev gcc-aarch64-linux-gnu + shell: bash - name: Install macOS Wails deps if: runner.os == 'macOS' run: brew install mitchellh/gon/gon