forked from barbora4/COLA
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
actions: various platform build workflow
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 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,40 @@ | ||
name: Various platforms (build-&-test) | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- devel | ||
pull_request: | ||
branches: | ||
- master | ||
- devel | ||
# allows to run the action from GitHub UI | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
setup: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: sudo wget -O /etc/apt/trusted.gpg.d/lrde.gpg https://www.lrde.epita.fr/repo/debian.gpg | ||
- run: sudo sudo sh -c "echo 'deb http://www.lrde.epita.fr/repo/debian/ unstable/' >> /etc/apt/sources.list" | ||
- run: sudo apt-get update | ||
- run: sudo apt-get install -y spot libspot-dev python3-spot libspot0 libspotgen0 libspotltsmin0 | ||
- name: Compile release | ||
run: make release | ||
- name: Test release | ||
run: make test | ||
setup: | ||
runs-on: macos-15 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Building MacOS dependencies | ||
run: brew install spot | ||
- name: Compile | ||
run: make release | ||
- name: Test the library | ||
run: make test |