Feature: implement CLI #6
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 ARM64 Build | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v* | |
pull_request: | |
branches: ["main"] | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- name: Install Package | |
uses: ConorMacBride/[email protected] | |
with: | |
brew: libxml2 zlib openssl pkg-config automake libtool gettext zip | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ">=20" | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v3 | |
with: | |
run_install: false | |
package_json_file: ./crates/openconnect-gui/package.json | |
version: 8 | |
- name: Setup Rust | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: stable | |
target: aarch64-apple-darwin | |
cache: true | |
- name: Build | |
run: | | |
cd ./crates/openconnect-gui | |
pnpm install | |
pnpm tauri build | |
- name: Build CLI | |
run: | | |
cargo build --release -p openconnect-cli | |
- name: Upload | |
uses: actions/[email protected] | |
with: | |
name: openconnect-mac-aarch64 | |
path: | | |
./target/release/bundle/ | |
./target/release/openconnect-cli |