diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62e5e8e..2e7dda7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,7 +55,7 @@ jobs: runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v4 - - run: git tag ${{ github.event.inputs.tag }} + - run: git tag v${{ env.VENDOR_VERSION }} - name: setup node uses: actions/setup-node@v4 with: @@ -85,16 +85,18 @@ jobs: - name: Rust cache uses: swatinem/rust-cache@v2 with: - workspaces: './src-tauri -> target' + workspaces: 'apps/desktop/src-tauri -> target' - name: install frontend dependencies - run: npm install + run: npm ci + working-directory: apps/desktop - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} with: + projectPath: apps/desktop releaseId: ${{ env.RELEASE_ID }} releaseDraft: true prerelease: true diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml new file mode 100644 index 0000000..c918811 --- /dev/null +++ b/.github/workflows/rust-tests.yml @@ -0,0 +1,45 @@ +name: "Rust Tests" + +on: + pull_request: + types: [opened, synchronize, reopened] + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + cargo-test: + runs-on: ubuntu-24.04 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Rust stable + uses: dtolnay/rust-toolchain@stable + + - name: Install Linux dependencies + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install -y \ + libgtk-3-dev \ + libwebkit2gtk-4.1-dev \ + libappindicator3-dev \ + librsvg2-dev \ + patchelf + + - name: Stub Nuxt dist output + run: | + mkdir -p dist + test -f dist/index.html || echo '
+ {{ entry.value }}
+
+ {{ entry.error }}
+
+ {{ permission.raw }}
+
+ {{ permission.error }}
+