Skip to content

update README ofr macOS #2

update README ofr macOS

update README ofr macOS #2

Workflow file for this run

name: Build on macOS
on:
push:
branches: [ main ]
tags: [ 'v*' ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build-arm64:
name: Build for arm64
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Update rustup
run: rustup update
- name: Build frontend debug
run: cd frontend ; cargo build --features=log
- name: Prepare debug branch artifacts
if: ${{ github.ref_type == 'branch' }}
run: mkdir -p debug-artifacts/soxy-frontend-macos-arm64-debug-${{ github.sha }}/frontend
- name: Prepare debug tag artifacts
if: ${{ github.ref_type == 'tag' }}
run: mkdir -p debug-artifacts/soxy-frontend-macos-arm64-debug-${{ github.ref_name }}/frontend
- name: Move debug branch artifacts
if: ${{ github.ref_type == 'branch' }}
run: mv frontend/target/debug/libsoxy.dylib debug-artifacts/soxy-frontend-macos-arm64-debug-${{ github.sha }}/frontend
- name: Move debug tag artifacts
if: ${{ github.ref_type == 'tag' }}
run: mv frontend/target/debug/libsoxy.dylib debug-artifacts/soxy-frontend-macos-arm64-debug-${{ github.ref_name }}/frontend
- name: Upload debug branch artifacts
if: ${{ github.ref_type == 'branch' }}
uses: actions/upload-artifact@v4
with:
name: soxy-frontend-macos-arm64-debug-${{ github.sha }}
path: debug-artifacts
- name: Upload debug tag artifacts
if: ${{ github.ref_type == 'tag' }}
uses: actions/upload-artifact@v4
with:
name: soxy-frontend-macos-arm64-debug-${{ github.ref_name }}
path: debug-artifacts
- name: Build frontend release
run: cd frontend ; cargo build --release
- name: Prepare release branch artifacts
if: ${{ github.ref_type == 'branch' }}
run: mkdir -p release-artifacts/soxy-frontend-macos-arm64-release-${{ github.sha }}/frontend
- name: Prepare release tag artifacts
if: ${{ github.ref_type == 'tag' }}
run: mkdir -p release-artifacts/soxy-frontend-macos-arm64-release-${{ github.ref_name }}/frontend
- name: Move release branch artifacts
if: ${{ github.ref_type == 'branch' }}
run: mv frontend/target/release/libsoxy.dylib release-artifacts/soxy-frontend-macos-arm64-release-${{ github.sha }}/frontend
- name: Move release tag artifacts
if: ${{ github.ref_type == 'tag' }}
run: mv frontend/target/release/libsoxy.dylib release-artifacts/soxy-frontend-macos-arm64-release-${{ github.ref_name }}/frontend
- name: Upload release branch artifacts
if: ${{ github.ref_type == 'branch' }}
uses: actions/upload-artifact@v4
with:
name: soxy-frontend-macos-arm64-release-${{ github.sha }}
path: release-artifacts
- name: Upload release tag artifacts
if: ${{ github.ref_type == 'tag' }}
uses: actions/upload-artifact@v4
with:
name: soxy-frontend-macos-arm64-release-${{ github.ref_name }}
path: release-artifacts
build-intel:
name: Build for x86_64
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Update rustup
run: rustup update
- name: Build debug frontend
run: cd frontend ; cargo build --features=log
- name: Prepare debug branch artifacts
if: ${{ github.ref_type == 'branch' }}
run: mkdir -p debug-artifacts/soxy-frontend-macos-x86_64-debug-${{ github.sha }}/frontend
- name: Prepare debug tag artifacts
if: ${{ github.ref_type == 'tag' }}
run: mkdir -p debug-artifacts/soxy-frontend-macos-x86_64-debug-${{ github.ref_name }}/frontend
- name: Move debug branch artifacts
if: ${{ github.ref_type == 'branch' }}
run: mv frontend/target/debug/libsoxy.dylib debug-artifacts/soxy-frontend-macos-x86_64-debug-${{ github.sha }}/frontend
- name: Move debug tag artifacts
if: ${{ github.ref_type == 'tag' }}
run: mv frontend/target/debug/libsoxy.dylib debug-artifacts/soxy-frontend-macos-x86_64-debug-${{ github.ref_name }}/frontend
- name: Upload debug branch artifacts
if: ${{ github.ref_type == 'branch' }}
uses: actions/upload-artifact@v4
with:
name: soxy-frontend-macos-x86_64-debug-${{ github.sha }}
path: debug-artifacts
- name: Upload debug tag artifacts
if: ${{ github.ref_type == 'tag' }}
uses: actions/upload-artifact@v4
with:
name: soxy-frontend-macos-x86_64-debug-${{ github.ref_name }}
path: debug-artifacts
- name: Build release frontend
run: cd frontend ; cargo build --release
- name: Prepare release branch artifacts
if: ${{ github.ref_type == 'branch' }}
run: mkdir -p release-artifacts/soxy-frontend-macos-x86_64-release-${{ github.sha }}/frontend
- name: Prepare release tag artifacts
if: ${{ github.ref_type == 'tag' }}
run: mkdir -p release-artifacts/soxy-frontend-macos-x86_64-release-${{ github.ref_name }}/frontend
- name: Move release branch artifacts
if: ${{ github.ref_type == 'branch' }}
run: mv frontend/target/release/libsoxy.dylib release-artifacts/soxy-frontend-macos-x86_64-release-${{ github.sha }}/frontend
- name: Move release tag artifacts
if: ${{ github.ref_type == 'tag' }}
run: mv frontend/target/release/libsoxy.dylib release-artifacts/soxy-frontend-macos-x86_64-release-${{ github.ref_name }}/frontend
- name: Upload release branch artifacts
if: ${{ github.ref_type == 'branch' }}
uses: actions/upload-artifact@v4
with:
name: soxy-frontend-macos-x86_64-release-${{ github.sha }}
path: release-artifacts
- name: Upload release tag artifacts
if: ${{ github.ref_type == 'tag' }}
uses: actions/upload-artifact@v4
with:
name: soxy-frontend-macos-x86_64-release-${{ github.ref_name }}
path: release-artifacts