Add Firefox extension web-ext targets
ci / lint-test (push) Successful in 6m5s
ci / build (push) Successful in 6m42s

This commit is contained in:
Joe Julian
2026-04-23 21:51:41 -07:00
parent 2ccd5bc337
commit 2269944702
3 changed files with 90 additions and 2 deletions
+40 -1
View File
@@ -39,6 +39,11 @@ jobs:
distribution: temurin
java-version: "25"
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install native build dependencies
shell: bash
run: |
@@ -47,6 +52,7 @@ jobs:
apt-get update
apt-get install -y --no-install-recommends \
zsh \
python3 \
pkg-config \
libx11-dev \
libx11-xcb-dev \
@@ -58,6 +64,12 @@ jobs:
libxcursor-dev \
libxfixes-dev
- name: Install web-ext
shell: bash
run: |
set -euo pipefail
npm install -g web-ext
- name: Lint
shell: bash
run: |
@@ -74,6 +86,12 @@ jobs:
trap 'rm -rf -- "$state_dir"' EXIT
KEEPASSGO_STATE_DIR="$state_dir" go test -tags nox11,nowayland,novulkan ./...
- name: Firefox extension lint
shell: bash
run: |
set -euo pipefail
make browser-extension-firefox-lint
build:
needs: lint-test
runs-on: keepassgo-android
@@ -92,6 +110,11 @@ jobs:
distribution: temurin
java-version: "25"
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "22"
- name: Install native build dependencies
shell: bash
run: |
@@ -100,6 +123,7 @@ jobs:
apt-get update
apt-get install -y --no-install-recommends \
zsh \
python3 \
pkg-config \
libx11-dev \
libx11-xcb-dev \
@@ -111,6 +135,12 @@ jobs:
libxcursor-dev \
libxfixes-dev
- name: Install web-ext
shell: bash
run: |
set -euo pipefail
npm install -g web-ext
- name: Prepare dist directory
shell: bash
run: |
@@ -159,6 +189,13 @@ jobs:
make apk-release RELEASE_SIGNKEY="$signkey_path" RELEASE_SIGNPASS_FILE="$signpass_path"
cp build/keepassgo.apk "${DIST_DIR}/keepassgo.apk"
- name: Build Firefox extension
shell: bash
run: |
set -euo pipefail
make browser-extension-firefox-build
cp build/browser-extension/*.zip "${DIST_DIR}/"
- name: Upload CI artifacts
uses: christopherhx/gitea-upload-artifact@v4
env:
@@ -171,6 +208,7 @@ jobs:
dist/keepassgo-windows-amd64.exe
dist/keepassgo-windows-arm64.exe
dist/keepassgo.apk
dist/*.zip
retention-days: 30
- name: Publish release artifacts
@@ -193,4 +231,5 @@ jobs:
"${DIST_DIR}/keepassgo-linux-amd64" \
"${DIST_DIR}/keepassgo-windows-amd64.exe" \
"${DIST_DIR}/keepassgo-windows-arm64.exe" \
"${DIST_DIR}/keepassgo.apk"
"${DIST_DIR}/keepassgo.apk" \
"${DIST_DIR}"/*.zip