From 0400208df3009d833052be348a2970ef0de2a171 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Sun, 19 Jan 2025 11:53:03 +0100 Subject: [PATCH] Add GitHub actions workflow --- .github/workflows/build.yml | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..5954cec --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,51 @@ +name: 'build' + +on: + push: + branches: + - tauri + +env: + # renovate: datasource=npm depName=pnpm + PNPM_VERSION: 9.15.4 + +jobs: + build: +# permissions: +# contents: write + strategy: + fail-fast: false + matrix: + include: + - platform: 'ubuntu-24.04-arm' + args: '' + + runs-on: ${{ matrix.platform }} + steps: + - uses: actions/checkout@v4.2.2 + + - uses: pnpm/action-setup@v4.0.0 + with: + version: ${{ env.PNPM_VERSION }} + + - name: setup node + uses: actions/setup-node@v4.1.0 + with: + cache: pnpm + node-version: lts/* + + - name: install Rust stable + uses: dtolnay/rust-toolchain@stable + + - name: install dependencies (ubuntu only) + if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above. + run: | + sudo apt-get update + sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + + - name: install frontend dependencies + run: pnpm install + + - uses: tauri-apps/tauri-action@v0.5.18 + with: + args: ${{ matrix.args }} \ No newline at end of file