-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add MacOS M1 builder, don't use brew
- Rename runners to signify the architecture - Add macos-arm64-build runner - Download upstream SDL2 headers, lib is not needed since we're dynamically linking at runtime - Bump all runners to latest
- Loading branch information
Showing
1 changed file
with
48 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,8 @@ env: | |
CFLAGS: -Werror | ||
|
||
jobs: | ||
linux-build: | ||
runs-on: ubuntu-24.04 | ||
linux-x86_64-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -34,8 +34,8 @@ jobs: | |
release.linux.x86_64/librvvm.so | ||
release.linux.x86_64/librvvm_static.a | ||
win32-build: | ||
runs-on: ubuntu-24.04 | ||
win32-x86_64-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
@@ -53,21 +53,48 @@ jobs: | |
release.windows.x86_64/librvvm.dll | ||
release.windows.x86_64/librvvm_static.a | ||
macos-build: | ||
runs-on: macos-12 | ||
macos-arm64-build: | ||
runs-on: macos-latest | ||
env: | ||
SDL2_TAR_LINK: https://github.com/libsdl-org/SDL/releases/download/release-2.30.9/SDL2-2.30.9.tar.gz | ||
SDL2_NAME: SDL2-2.30.9 | ||
CFLAGS: -target arm64-apple-macos11 -Werror -ISDL2-2.30.9/include | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Install SDL | ||
run: brew install sdl12-compat | ||
- name: Build | ||
run: make lib all | ||
- name: Upload Artifacts | ||
uses: actions/[email protected] | ||
with: | ||
retention-days: 5 | ||
name: rvvm_macos_x86_64 | ||
path: | | ||
release.darwin.x86_64/rvvm_x86_64 | ||
release.darwin.x86_64/librvvm.dylib | ||
release.darwin.x86_64/librvvm_static.a | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Download SDL2 headers | ||
run: wget ${{env.SDL2_TAR_LINK}} -O - | tar -xzf - && mv ${{env.SDL2_NAME}}/include src/SDL2 | ||
- name: Build | ||
run: make lib all | ||
- name: Upload Artifacts | ||
uses: actions/[email protected] | ||
with: | ||
retention-days: 5 | ||
name: rvvm_macos_arm64 | ||
path: | | ||
release.darwin.arm64/rvvm_arm64 | ||
release.darwin.arm64/librvvm.dylib | ||
release.darwin.arm64/librvvm_static.a | ||
macos-x86_64-build: | ||
runs-on: macos-latest | ||
env: | ||
SDL2_TAR_LINK: https://github.com/libsdl-org/SDL/releases/download/release-2.30.9/SDL2-2.30.9.tar.gz | ||
SDL2_NAME: SDL2-2.30.9 | ||
CFLAGS: -target x86_64-apple-macos10.12 -Werror -ISDL2-2.30.9/include | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Download SDL2 headers | ||
run: wget ${{env.SDL2_TAR_LINK}} -O - | tar -xzf - && mv ${{env.SDL2_NAME}}/include src/SDL2 | ||
- name: Build | ||
run: make lib all | ||
- name: Upload Artifacts | ||
uses: actions/[email protected] | ||
with: | ||
retention-days: 5 | ||
name: rvvm_macos_x86_64 | ||
path: | | ||
release.darwin.x86_64/rvvm_x86_64 | ||
release.darwin.x86_64/librvvm.dylib | ||
release.darwin.x86_64/librvvm_static.a |