-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
5 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
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 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
env: | ||
PYTHONIOENCODING: utf-8 | ||
PYTHONLEGACYWINDOWSSTDIO: utf-8 | ||
|
||
jobs: | ||
check-ubuntu-x86_64: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-11] | ||
steps: | ||
- name: Checkout git repo | ||
uses: actions/checkout@v2 | ||
with: | ||
path: main | ||
- name: Preparations | ||
working-directory: main | ||
run: | | ||
# The 'submodules' option for actions/checkout@v2 doesn't | ||
# seem to work. So we manually sync it just in case. | ||
git submodule init | ||
git submodule update | ||
sudo apt update | ||
brew install cmake ninja gcc p7zip | ||
mkdir -p compiler/cmake-build-release | ||
- name: Configuring CMake | ||
working-directory: main/compiler/cmake-build-release | ||
run: | | ||
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release ../ | ||
- name: Build | ||
working-directory: main/compiler/cmake-build-release | ||
run: | | ||
ninja all | ||
- name: Test | ||
working-directory: main/compiler/cmake-build-release | ||
run: | | ||
ninja test |
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