Skip to content

Commit

Permalink
[ci] update linux, add windows and macos
Browse files Browse the repository at this point in the history
  • Loading branch information
feelamee committed Oct 23, 2024
1 parent 3e63f84 commit 86e7989
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
BUILD_TYPE: Release

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v4

- name: configure cmake
run: cmake -S ${{github.workspace}}/test -B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DORBI_PEDANTIC=ON

- name: build
run: cmake --build ${{github.workspace}}/build -j

- name: test
run: ${{github.workspace}}/build/test
28 changes: 28 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: build tests

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
BUILD_TYPE: Release

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: configure cmake
run: cmake -S ${{github.workspace}}/test -B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DORBI_PEDANTIC=ON

- name: build
run: cmake --build ${{github.workspace}}/build -j

- name: test
run: ${{github.workspace}}/build/test

0 comments on commit 86e7989

Please sign in to comment.