Skip to content

Reorder Cut and Copy action #118

Reorder Cut and Copy action

Reorder Cut and Copy action #118

Workflow file for this run

name: Build on macOS
on:
push:
branches:
- rust
jobs:
build:
strategy:
matrix:
os: [ macos-latest ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
- name: Update Rust
run: |
rustup update
rustup target install x86_64-apple-darwin
- uses: Swatinem/rust-cache@v2
- uses: r7kamura/rust-problem-matchers@v1
- name: Install libcontemporary utils
run: |
git clone https://github.com/vicr123/contemporary-rs
cargo install --path ./contemporary-rs/deploy_tool/cargo_cntp_bundle
cargo install --path ./contemporary-rs/deploy_tool/cargo_cntp_deploy
- name: Build (arm)
run: cargo build --verbose --release
- name: Build (x86_64)
run: cargo build --verbose --release --target x86_64-apple-darwin
- name: Bundle
run: cargo cntp-bundle --target x86_64-apple-darwin --target aarch64-apple-darwin
working-directory: theterminal
- name: Deploy
run: cargo cntp-deploy --target x86_64-apple-darwin --target aarch64-apple-darwin --output-file "$HOME/theTerminal-macOS.dmg"
working-directory: theterminal
- uses: actions/upload-artifact@v4
with:
name: theTerminal-macOS
path: "~/theTerminal-macOS.dmg"