Skip to content

Commit

Permalink
ci(github-ci): macos tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JaDogg committed Dec 16, 2023
1 parent 5c1e8aa commit f0f24c6
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
push:
branches:
- main

workflow_dispatch:
env:
PYTHONIOENCODING: utf-8
PYTHONLEGACYWINDOWSSTDIO: utf-8
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/development_macos.yml
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
6 changes: 2 additions & 4 deletions .github/workflows/release_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ jobs:
matrix:
os: [macos-11]
steps:
- name: Install 7z
run: brew install p7zip
- name: cmake
run: brew install cmake
- name: Install software
run: breaw install cmake ninja gcc p7zip
- name: Checkout git repo
uses: actions/checkout@v2
with:
Expand Down

0 comments on commit f0f24c6

Please sign in to comment.