2026-03-27 14:11:49 IST-(lite)-(8)-(V:0.5.4)-> "corrected issues in w… #17
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 MindSafe Packages | |
| on: | |
| push: | |
| tags: ["v*"] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - os: macos-latest | |
| artifact: macos | |
| - os: ubuntu-latest | |
| artifact: linux | |
| - os: windows-latest | |
| artifact: windows | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Install dependencies (Linux only) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libgtk-3-dev libssl-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev | |
| - name: Install cargo-packager | |
| run: cargo install cargo-packager --locked | |
| - name: Build Binary | |
| run: cargo build --release | |
| - name: Create Packages | |
| # cargo-packager reads the [package.metadata.packager] from Cargo.toml | |
| run: cargo packager --release --formats ${{ matrix.os == 'macos-latest' && 'dmg,app' || matrix.os == 'windows-latest' && 'wix,nsis' || 'deb,appimage' }} | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: mindsafe-${{ matrix.artifact }} | |
| path: dist/* | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| if: startsWith(github.ref, 'refs/tags/') | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: release-artifacts | |
| - name: Publish Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: release-artifacts/**/* |