Skip to content

Commit

Permalink
remu build after comgr
Browse files Browse the repository at this point in the history
  • Loading branch information
pyYTn9 authored and pyYTn9 committed Jan 2, 2025
1 parent e4fb019 commit 8d84308
Showing 1 changed file with 36 additions and 35 deletions.
71 changes: 36 additions & 35 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,42 +15,8 @@ on:
workflow_dispatch:

jobs:
build_remu:
name: Build libremu
runs-on: [self-hosted, macOS]
timeout-minutes: 20
steps:
- name: Checkout remu
uses: actions/checkout@v4
with:
repository: Qazalin/remu
path: remu

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: aarch64-apple-darwin
profile: minimal
default: true

- name: Build libremu
working-directory: remu
env:
CC: clang
run: |
cargo build --release --target aarch64-apple-darwin
mkdir -p $GITHUB_WORKSPACE/artifacts
cp target/aarch64-apple-darwin/release/libremu.dylib $GITHUB_WORKSPACE/artifacts/
- name: Upload libremu artifact
uses: actions/upload-artifact@v4
with:
name: libremu
path: artifacts/libremu.dylib

build_comgr:
name: Mac tiny tests on AMD
name: Build libcomgr
runs-on: [self-hosted, macOS]
timeout-minutes: 200
steps:
Expand All @@ -76,6 +42,8 @@ jobs:
echo "ROOT_DIR=`pwd`" >> $GITHUB_ENV
echo "INSTALL_DIR=$ROOT_DIR/usr/local" >> $GITHUB_ENV
echo $GITHUB_ENV
- name: Cache LLVM Build
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -133,6 +101,39 @@ jobs:
ninja || exit 1 # Exit if build fails
ninja install
cd ../..
build_remu:
name: Build libremu
runs-on: [self-hosted, macOS]
timeout-minutes: 20
steps:
- name: Checkout remu
uses: actions/checkout@v4
with:
repository: Qazalin/remu
path: remu

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: aarch64-apple-darwin
profile: minimal
default: true

- name: Build libremu
working-directory: remu
env:
CC: clang
run: |
cargo build --release --target aarch64-apple-darwin
mkdir -p $GITHUB_WORKSPACE/artifacts
cp target/aarch64-apple-darwin/release/libremu.dylib $GITHUB_WORKSPACE/artifacts/
- name: Upload libremu artifact
uses: actions/upload-artifact@v4
with:
name: libremu
path: artifacts/libremu.dylib

macos_tiny_tests:
name: Mac tiny tests on AMD
Expand Down

0 comments on commit 8d84308

Please sign in to comment.