Skip to content

Commit

Permalink
macos pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstink committed Oct 1, 2024
1 parent af9dfdf commit 12f831d
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions .github/workflows/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,29 @@ name: Build project
on: [push]

jobs:
build-project:
build-mac:
runs-on: macos-14
steps:
- uses: actions/checkout@v1
- name: "build mac"
run: |
brew install glfw
git submodule update --init --recursive
mkdir build
cd build
bash -c 'cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON ..'
make
- name: Upload macos
uses: actions/upload-artifact@v4
with:
name: Farbart macos
path: build/symmetri/gui/Farbart

build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "build project"
- name: "build linux"
run: |
sudo apt-get update
sudo apt-get install -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib libfreetype6-dev libvulkan-dev
Expand All @@ -16,14 +34,22 @@ jobs:
cd build
bash -c 'cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON ..'
make
- name: Upload gui
- name: Upload linux
uses: actions/upload-artifact@v4
with:
name: Farbart
name: Farbart linux x64-86
path: build/symmetri/gui/Farbart

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "tests with ASAN"
run: |
sudo apt-get update
sudo apt-get install -y libglfw3-dev libsdl2-dev gcc-multilib g++-multilib libfreetype6-dev libvulkan-dev
git submodule update --init --recursive
mkdir build
cd build
bash -c 'cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DASAN_BUILD=ON -DTSAN_BUILD=OFF ..'
make
Expand All @@ -32,6 +58,7 @@ jobs:
- name: "tests with TSAN"
run: |
cd build
make clean
bash -c 'cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=ON -DASAN_BUILD=OFF -DTSAN_BUILD=ON ..'
make
ctest -VV

0 comments on commit 12f831d

Please sign in to comment.