From 1b5c3856946915c1e1c00b7971f2d32122cb648c Mon Sep 17 00:00:00 2001 From: JopStro Date: Sun, 5 May 2024 19:21:42 +0100 Subject: [PATCH] Add macos build action --- .github/workflows/rust.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a2ce3c0..4ec298a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -6,7 +6,7 @@ env: CARGO_TERM_COLOR: always jobs: - build: + build-windows: runs-on: windows-latest @@ -19,8 +19,18 @@ jobs: run: cargo build --verbose --release env: LUA_LIB: "./.lua/lib" - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v4 with: name: json5.dll path: target/release/json5.dll - + build-macos: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose --release + - uses: actions/upload-artifact@v4 + with: + name: json5.dylib + path: target/release/json5.dylib