Skip to content

🍎 MacOS

🍎 MacOS #336

Workflow file for this run

name: 🍎 MacOS
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 2'
env:
CARGO_TERM_COLOR: always
jobs:
macos:
strategy:
matrix:
toolchain: [ stable ]
type: [ release ]
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Setup rust version
run: rustup default ${{ matrix.toolchain }}
- 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 GTK4
run: brew install rust gtk4
- name: Build Release
run: cargo build --release
env:
CARGO_INCREMENTAL: 0
if: ${{ matrix.type == 'release'}}
- name: Store MacOS GUI
uses: actions/upload-artifact@v3
with:
name: szyszka-${{ runner.os }}-${{ matrix.toolchain }}
path: target/release/szyszka
if: ${{ matrix.type == 'release' }}