2020-10-07 11:17:30 +00:00
|
|
|
name: 🍎 MacOS
|
2020-10-08 20:15:46 +00:00
|
|
|
on: [ push, pull_request ]
|
2020-10-07 11:17:30 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
CARGO_TERM_COLOR: always
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
macos-cli:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain: [ stable ]
|
|
|
|
type: [ release ]
|
2021-01-14 12:26:43 +00:00
|
|
|
runs-on: macos-10.15
|
2020-10-07 11:17:30 +00: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-cli-${{github.ref}}-${{github.sha}}
|
|
|
|
restore-keys: |
|
|
|
|
mac-cli-${{github.ref}}-${{github.sha}}
|
|
|
|
|
|
|
|
- name: Build CLI Debug
|
|
|
|
run: cargo build --bin czkawka_cli
|
|
|
|
env:
|
|
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
|
|
|
if: ${{ matrix.type == 'debug'}}
|
|
|
|
|
|
|
|
- name: Build CLI Release
|
|
|
|
run: cargo build --release --bin czkawka_cli
|
|
|
|
env:
|
|
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
|
|
|
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' }}
|
2020-12-31 18:53:49 +00:00
|
|
|
|
|
|
|
macos-gui:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
toolchain: [ stable ]
|
|
|
|
type: [ release ]
|
2021-01-14 12:26:43 +00:00
|
|
|
runs-on: macos-10.15
|
2020-12-31 18:53:49 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: ${{ matrix.toolchain }}
|
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: Install Homebrew
|
|
|
|
run: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
|
|
|
|
|
|
- name: Override link[WORKAROUND] # Looks that this is a bug with current homebrew or Github CI
|
|
|
|
run: rm '/usr/local/bin/2to3'
|
|
|
|
|
|
|
|
- name: Install GTK3
|
|
|
|
run: brew install rust gtk+3
|
|
|
|
|
|
|
|
- name: Build GUI Debug
|
|
|
|
run: cargo build --bin czkawka_gui
|
|
|
|
env:
|
|
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
|
|
|
if: ${{ matrix.type == 'debug'}}
|
|
|
|
|
|
|
|
- name: Build GUI Release
|
|
|
|
run: cargo build --release --bin czkawka_gui
|
|
|
|
env:
|
|
|
|
CARGO_INCREMENTAL: 0
|
|
|
|
RUSTFLAGS: "-C debuginfo=0 -D warnings"
|
|
|
|
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' }}
|