Skip to content

Commit

Permalink
Merge pull request #3 from PixelHir/master
Browse files Browse the repository at this point in the history
Darwin ARM build action
  • Loading branch information
Noxyntious authored Mar 4, 2024
2 parents 4e1b64c + 30e6eee commit a034f0d
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/rustbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build-mac:
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v1
- name: Cache Rust dependencies
uses: actions/[email protected]
with:
path: target
key: ${{ runner.OS }}-build-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.OS }}-build-
- name: Install Rust toolchain (Apple Silicon)
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: aarch64-apple-darwin
override: true

- name: Build for mac
run: cargo build --release --target aarch64-apple-darwin

- name: Create Release Artifact
uses: actions/upload-artifact@v3
with:
name: meower-darwin-arm
path: target/aarch64-apple-darwin/release/meower

0 comments on commit a034f0d

Please sign in to comment.