-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from TheVice/github_actions
Add GitHub Actions for all supported platforms.
- Loading branch information
Showing
3 changed files
with
116 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,112 @@ | ||
name: make | ||
|
||
on: | ||
pull_request: | ||
branches: [ dev ] | ||
push: | ||
|
||
jobs: | ||
make-test-macos: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: clangtest | ||
run: make clangtest | ||
|
||
- name: test | ||
run: make test | ||
|
||
- name: sanitize | ||
run: make sanitize | ||
|
||
- name: max13test | ||
run: make max13test | ||
|
||
make-test-ubuntu: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Setup environment | ||
run: | | ||
sudo apt-get update -qq | ||
sudo apt-get install -qq clang | ||
sudo apt-get install -qq g++-multilib | ||
sudo apt-get install -qq gcc-multilib | ||
sudo apt-get install -qq valgrind | ||
sudo apt-get install -qq make | ||
sudo apt-get install -qq gcc-arm-linux-gnueabi | ||
- name: clangtest | ||
run: make clangtest | ||
|
||
- name: armtest | ||
run: make armtest | ||
|
||
- name: gpptest | ||
run: make gpptest | ||
|
||
- name: test | ||
run: make test | ||
|
||
- name: sanitize | ||
run: make sanitize | ||
|
||
- name: max13test | ||
run: make max13test | ||
|
||
make-test-windows: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false # 'false' means Don't stop matrix workflows even if some matrix failed. | ||
matrix: | ||
include: [ | ||
{ compiler: gcc, cpp_compiler: g++, msystem: MINGW64 }, | ||
{ compiler: clang, cpp_compiler: clang++, msystem: MINGW64 }, | ||
] | ||
defaults: | ||
run: | ||
shell: msys2 {0} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: msys2/setup-msys2@cc11e9188b693c2b100158c3322424c4cc1dadea # tag=v2.22.0 | ||
with: | ||
msystem: ${{ matrix.msystem }} | ||
install: make diffutils | ||
update: true | ||
|
||
# Based on https://ariya.io/2020/07/on-github-actions-with-msys2 | ||
- name: install mingw gcc x86_64 | ||
if: ${{ (matrix.compiler == 'gcc') }} | ||
run: pacman --noconfirm -S mingw-w64-x86_64-gcc | ||
|
||
- name: install mingw clang x86_64 | ||
if: ${{ (matrix.compiler == 'clang') }} | ||
run: pacman --noconfirm -S mingw-w64-x86_64-clang | ||
|
||
- name: clangtest | ||
if: ${{ (matrix.compiler == 'clang') }} | ||
run: | | ||
export CC=${{ matrix.compiler }} | ||
export CXX=${{ matrix.cpp_compiler }} | ||
make clangtest | ||
- name: gpptest | ||
if: ${{ (matrix.compiler == 'gcc') }} | ||
run: | | ||
export CC=${{ matrix.compiler }} | ||
export CXX=${{ matrix.cpp_compiler }} | ||
make gpptest | ||
- name: test | ||
run: | | ||
export CC=${{ matrix.compiler }} | ||
export CXX=${{ matrix.cpp_compiler }} | ||
make test | ||
- name: max13test | ||
run: | | ||
export CC=${{ matrix.compiler }} | ||
export CXX=${{ matrix.cpp_compiler }} | ||
make max13test |
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