Repository navigation
chore: release 1.1.11 #54
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [master] | |
| tags: ["v*"] | |
| pull_request: | |
| branches: [master] | |
| permissions: | |
| contents: write | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - platform: macos-latest | |
| args: --bundles dmg | |
| - platform: ubuntu-22.04 | |
| args: --bundles appimage,deb | |
| - platform: windows-latest | |
| args: --no-bundle | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Linux system dependencies | |
| if: runner.os == 'Linux' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| libwebkit2gtk-4.1-dev \ | |
| libappindicator3-dev \ | |
| librsvg2-dev \ | |
| patchelf | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 11.13.1 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| cache-dependency-path: src/celemod-ui/pnpm-lock.yaml | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: src-tauri -> target | |
| - name: Install frontend dependencies | |
| run: pnpm --dir src/celemod-ui install --frozen-lockfile | |
| - name: Typecheck frontend | |
| run: pnpm --dir src/celemod-ui typecheck | |
| - name: Build Windows executable | |
| if: runner.os == 'Windows' | |
| env: | |
| CMAKE_POLICY_VERSION_MINIMUM: 3.5 | |
| run: node src/celemod-ui/scripts/tauri.mjs build --no-bundle | |
| - uses: tauri-apps/tauri-action@v0.6.2 | |
| if: runner.os != 'Windows' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CMAKE_POLICY_VERSION_MINIMUM: 3.5 | |
| with: | |
| projectPath: . | |
| args: ${{ matrix.args }} | |
| tagName: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }} | |
| releaseName: ${{ startsWith(github.ref, 'refs/tags/') && format('CeleMod {0}', github.ref_name) || '' }} | |
| releaseDraft: false | |
| prerelease: false | |
| - name: Rename Windows executable | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| $version = (Get-Content version.txt -Raw).Trim() | |
| Move-Item target/release/cele-mod.exe "target/release/CeleMod_$version.exe" | |
| - name: Upload Windows executable artifact | |
| if: runner.os == 'Windows' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: CeleMod-windows-exe | |
| path: target/release/CeleMod_*.exe | |
| if-no-files-found: error | |
| - name: Upload Windows executable to release | |
| if: runner.os == 'Windows' && startsWith(github.ref, 'refs/tags/') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| name: CeleMod ${{ github.ref_name }} | |
| body_path: CHANGELOG.md | |
| files: target/release/CeleMod_*.exe |