1
0
Fork 0
mirror of synced 2024-05-15 18:02:53 +12:00
czkawka/.github/workflows/mac.yml

61 lines
1.6 KiB
YAML
Raw Normal View History

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:
macos-cli:
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:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions/cache@v2
with:
path: |
target
key: mac-${{github.ref}}-${{github.sha}}
2020-10-08 00:17:30 +13:00
restore-keys: |
mac-${{github.ref}}-${{github.sha}}
- name: Install Homebrew
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
2022-06-01 03:52:55 +12:00
- name: Override link[WORKAROUND] # Looks that this is a bug with current homebrew or GitHub CI
run: rm '/usr/local/bin/2to3'
2022-05-22 20:59:09 +12:00
- name: Install GTK4
run: brew install rust gtk4 libheif
- name: Build Release
run: cargo build --release --features heif
env:
CARGO_INCREMENTAL: 0
if: ${{ matrix.type == 'release'}}
- name: Store MacOS CLI
uses: actions/upload-artifact@v2
with:
name: czkawka_cli-${{ runner.os }}-${{ matrix.toolchain }}
path: target/release/czkawka_cli
if: ${{ matrix.type == 'release' }}
- name: Store MacOS GUI
uses: actions/upload-artifact@v2
with:
name: czkawka_gui-${{ runner.os }}-${{ matrix.toolchain }}
path: target/release/czkawka_gui
if: ${{ matrix.type == 'release' }}