WIP: Do not Merge: Release workflows #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Mac | |
on: | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
- "helm/**" | |
- "assets/**" | |
- "**.md" | |
jobs: | |
build-mac: | |
runs-on: darwin-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Install latest rust toolchain for aarch64 | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: aarch64-apple-darwin | |
default: true | |
override: true | |
- name: Build for aarch64 | |
run: cargo build --all --release --target aarch64-apple-darwin && strip target/aarch64-apple-darwin/release/Parseable && mv target/aarch64-apple-darwin/release/Parseable target/aarch64-apple-darwin/release/Parseable_darwin | |
- name: Dir command | |
run: find target/ -type d -name "debug" -prune -o -type f -maxdepth 3 | |
- name: Create artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Parseable | |
path: | | |
target/aarch64-apple-darwin/release/parseable | |
- name: Install latest rust toolchain for x86_64 | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
target: x86_64-apple-darwin | |
default: true | |
override: true | |
- name: Build for x86_64 | |
run: cargo build --release --target x86_64-apple-darwin && strip target/x86_64-apple-darwin/release/Parseable && mv target/x86_64-apple-darwin/release/Parseable target/x86_64-apple-darwin/release/Parseable_darwin | |
- name: Create artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Parseable | |
path: | | |
target/aarch64-apple-darwin/release/parseable |