Build project #22
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: Macos Intel | |
| run-name: Build project | |
| on: | |
| push: | |
| tags: | |
| - '*.*.*' | |
| jobs: | |
| build: | |
| permissions: | |
| contents: write | |
| runs-on: macos-13 | |
| env: | |
| ENV: prod | |
| SLINT_BACKEND: winit-skia | |
| SLEEK_UI_PATH: ${{ github.workspace }}/sleek-ui/ui/sleek-ui | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Check out sleek-ui repository | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: uAtomicBoolean/sleek-ui | |
| path: ./sleek-ui | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: x86_64-apple-darwin | |
| - name: Rust cache | |
| uses: swatinem/rust-cache@v2 | |
| - name: Select icons | |
| run: | | |
| cp res/macos/32x32.png res/32x32.png | |
| cp res/macos/icon.png res/icon.png | |
| - name: Package the project | |
| run: | | |
| cargo install cargo-packager --locked | |
| cargo packager --release | |
| - name: Rename binary | |
| run: | | |
| cp target/release/scriptboard target/release/scriptboard-${{ github.ref_name }}-x86_64-macos | |
| shell: bash | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: scriptboard v${{ github.ref_name }} | |
| body_path: changelogs/${{ github.ref_name }}-changelog.txt | |
| files: | | |
| target/release/scriptboard-${{ github.ref_name }}-x86_64-macos | |
| dist/scriptboard* |