1.80.0 #2573
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * 2' | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Homebrew | |
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
- name: Install GTK4 | |
run: | | |
brew link --overwrite python@3.11 | |
brew install rust gtk4 libheif || true | |
brew link --overwrite python@3.11 | |
- name: Setup rust version | |
run: rustup default stable | |
- name: Enable LTO | |
run: sed -i '' 's/#lto = "thin"/lto = "thin"/g' Cargo.toml | |
- name: Build Release | |
run: cargo build --release | |
- name: Store MacOS CLI | |
uses: actions/upload-artifact@v4 | |
with: | |
name: czkawka_cli-${{ runner.os }} | |
path: target/release/czkawka_cli | |
- name: Store MacOS GUI | |
uses: actions/upload-artifact@v4 | |
with: | |
name: czkawka_gui-${{ runner.os }} | |
path: target/release/czkawka_gui | |
- name: Store MacOS Krokiet | |
uses: actions/upload-artifact@v4 | |
with: | |
name: krokiet-${{ runner.os }} | |
path: target/release/krokiet | |
- name: Prepare files to release | |
run: | | |
mv target/release/czkawka_cli macos_czkawka_cli | |
mv target/release/czkawka_gui macos_czkawka_gui | |
mv target/release/krokiet macos_krokiet | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: ${{ github.ref == 'refs/heads/master' }} | |
with: | |
tag_name: "Nightly" | |
files: | | |
macos_czkawka_cli | |
macos_czkawka_gui | |
macos_krokiet | |
token: ${{ secrets.PAT_REPOSITORY }} | |
# # TODO - compilation is broken, not sure why | |
# - name: Build Release Heif | |
# run: cargo build --release --features heif | |
# | |
# - name: Store MacOS CLI Heif | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: czkawka_cli-${{ runner.os }}-heif | |
# path: target/release/czkawka_cli | |
# | |
# - name: Store MacOS GUI Heif | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: czkawka_gui-${{ runner.os }}-heif | |
# path: target/release/czkawka_gui | |
# | |
# - name: Store MacOS Krokiet Heif | |
# uses: actions/upload-artifact@v4 | |
# with: | |
# name: krokiet-${{ runner.os }}-heif | |
# path: target/release/krokiet |