-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github CI for Macports, frameworks.
The macOS workflows use actions/checkout@v4, alire-project/setup-alire@v3. The Macports CI disables Homebrew and installs Macports. The Frameworks CI disables Homebrew. It uses the BrettDong/setup-sdl2-frameworks action to retrieve the latest SDL2.framework, and copies it to /Library/Frameworks, where this crate expects it. * .github/workflows/ci-macos-hb.yml: renamed from ci-macos.yml. Uses Homebrew. * .github/workflows/ci-macos-mp.yml: new. Uses MacPorts. * .github/workflows/ci-macos.yml: renamed to ci-macos-hb.yml. * .github/workflows/ci-macos-fw.yml: new. Uses SDL2.framework.
- Loading branch information
1 parent
a74b500
commit bde469e
Showing
4 changed files
with
86 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
|
||
name: CI macOS (Frameworks) | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: CI on macOS (Frameworks) | ||
|
||
runs-on: macos-12 | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: alire-project/setup-alire | ||
uses: alire-project/setup-alire@v3 | ||
- | ||
name: Install toolchain | ||
run: | | ||
alr --non-interactive settings --global --set toolchain.assistant false | ||
alr --non-interactive toolchain --select gnat_native | ||
alr --non-interactive toolchain --select gprbuild | ||
- | ||
name: Disable Homebrew | ||
run: rm -f $(which brew) | ||
shell: bash | ||
- | ||
name: Install SDL2.framework to ~/Library/Frameworks | ||
uses: BrettDong/setup-sdl2-frameworks@main | ||
- | ||
name: Copy SDL2.framework to /Library/Frameworks | ||
run: sudo cp -pR ~/Library/Frameworks/SDL2.framework /Library/Frameworks | ||
shell: bash | ||
- | ||
name: Build and run | ||
run: | | ||
alr --non-interactive build |
4 changes: 2 additions & 2 deletions
4
.github/workflows/ci-macos.yml → .github/workflows/ci-macos-hb.yml
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
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
|
||
name: CI macOS (Macports) | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: CI on macOS (Macports) | ||
|
||
runs-on: macos-12 | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v4 | ||
- | ||
name: alire-project/setup-alire | ||
uses: alire-project/setup-alire@v3 | ||
- | ||
name: Install toolchain | ||
run: | | ||
alr --non-interactive settings --global --set toolchain.assistant false | ||
alr --non-interactive toolchain --select gnat_native | ||
alr --non-interactive toolchain --select gprbuild | ||
- | ||
name: Disable Homebrew | ||
run: rm -f $(which brew) | ||
shell: bash | ||
- | ||
name: Install MacPorts | ||
uses: melusina-org/setup-macports@v1 | ||
- | ||
name: Build and run | ||
run: | | ||
alr --non-interactive build |
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