2020-10-08 00:17:30 +13:00
|
|
|
name: 🍎 MacOS
|
2021-11-20 21:49:03 +13:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * 2'
|
2020-10-08 00:17:30 +13:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
2022-11-26 08:38:27 +13:00
|
|
|
macos:
|
2020-10-08 00:17:30 +13:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain: [ stable ]
|
|
|
|
type: [ release ]
|
2022-07-28 17:29:50 +12:00
|
|
|
runs-on: macos-latest
|
2020-10-08 00:17:30 +13:00
|
|
|
steps:
|
2022-11-26 08:38:27 +13:00
|
|
|
- uses: actions/checkout@v3
|
2020-10-08 00:17:30 +13:00
|
|
|
|
2021-01-01 07:53:49 +13:00
|
|
|
- name: Install Homebrew
|
|
|
|
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
|
|
|
2022-05-22 20:59:09 +12:00
|
|
|
- name: Install GTK4
|
2022-12-30 05:25:01 +13:00
|
|
|
run: |
|
|
|
|
brew link --overwrite python@3.11
|
|
|
|
brew install rust gtk4 libheif || true
|
|
|
|
brew link --overwrite python@3.11
|
2021-01-01 07:53:49 +13:00
|
|
|
|
2023-05-15 01:00:53 +12:00
|
|
|
- name: Setup rust version
|
|
|
|
run: rustup default ${{ matrix.toolchain }}
|
|
|
|
|
2022-07-30 05:26:28 +12:00
|
|
|
- name: Build Release
|
2022-12-07 20:18:30 +13:00
|
|
|
run: cargo build --release
|
2021-01-01 07:53:49 +13:00
|
|
|
if: ${{ matrix.type == 'release'}}
|
|
|
|
|
2022-07-30 05:26:28 +12:00
|
|
|
- name: Store MacOS CLI
|
2022-11-26 08:38:27 +13:00
|
|
|
uses: actions/upload-artifact@v3
|
2022-07-30 05:26:28 +12:00
|
|
|
with:
|
|
|
|
name: czkawka_cli-${{ runner.os }}-${{ matrix.toolchain }}
|
|
|
|
path: target/release/czkawka_cli
|
|
|
|
if: ${{ matrix.type == 'release' }}
|
|
|
|
|
2021-01-01 07:53:49 +13:00
|
|
|
- name: Store MacOS GUI
|
2022-11-26 08:38:27 +13:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-01-01 07:53:49 +13:00
|
|
|
with:
|
|
|
|
name: czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }}
|
|
|
|
path: target/release/czkawka_gui
|
2022-12-07 20:18:30 +13:00
|
|
|
if: ${{ matrix.type == 'release' }}
|
|
|
|
|
2023-12-04 00:06:42 +13:00
|
|
|
- name: Store MacOS Krokiet
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: krokiet-${{ runner.os }}-${{ matrix.toolchain }}
|
|
|
|
path: target/release/krokiet
|
|
|
|
if: ${{ matrix.type == 'release' }}
|
|
|
|
|
2022-12-07 20:18:30 +13:00
|
|
|
- name: Build Release Heif
|
|
|
|
run: cargo build --release --features heif
|
|
|
|
if: ${{ matrix.type == 'release'}}
|
|
|
|
|
|
|
|
- name: Store MacOS CLI Heif
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: czkawka_cli-${{ runner.os }}-${{ matrix.toolchain }}-heif
|
|
|
|
path: target/release/czkawka_cli
|
|
|
|
if: ${{ matrix.type == 'release' }}
|
|
|
|
|
|
|
|
- name: Store MacOS GUI Heif
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }}-heif
|
|
|
|
path: target/release/czkawka_gui
|
2023-12-04 00:06:42 +13:00
|
|
|
if: ${{ matrix.type == 'release' }}
|
|
|
|
|
|
|
|
- name: Store MacOS Krokiet Heif
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: krokiet-${{ runner.os }}-${{ matrix.toolchain }}-heif
|
|
|
|
path: target/release/krokiet
|
2022-07-30 05:26:28 +12:00
|
|
|
if: ${{ matrix.type == 'release' }}
|