-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Fix and switch to GitHub actions
- Loading branch information
1 parent
1897401
commit fafb54e
Showing
6 changed files
with
80 additions
and
98 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,27 @@ | ||
name: Apple Silicon | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
type: [Debug, Release] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Clone GTest | ||
run: git clone https://github.com/google/googletest.git | ||
- name: Build and run | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
mkdir build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../ | ||
make -j8 | ||
./cppTutorUT |
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 |
---|---|---|
@@ -1,20 +1,33 @@ | ||
name: x86-Ubuntu | ||
|
||
on: [push] | ||
on: | ||
push: | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
compiler: | ||
- { compiler: GNU, CC: gcc-10, CXX: g++-10 } | ||
- { compiler: LLVM, CC: clang-10, CXX: clang++-10 } | ||
type: [Debug, Release] | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build cpp-tutor | ||
- uses: actions/checkout@v4 | ||
- name: Clone GTest | ||
run: git clone https://github.com/google/googletest.git | ||
- name: Build and run | ||
env: | ||
CC: ${{ matrix.compiler.CC }} | ||
CXX: ${{ matrix.compiler.CXX }} | ||
run: | | ||
# CLONE GTEST | ||
git clone https://github.com/google/googletest.git | ||
# BUILD CPP-TUTOR | ||
mkdir build | ||
cd build | ||
cmake -DCMAKE_BUILD_TYPE=Release ../ | ||
cd $GITHUB_WORKSPACE | ||
mkdir build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../ | ||
make -j8 | ||
# RUN UNIT TESTS | ||
./cppTutorUT |
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,27 @@ | ||
name: x86-Windows | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ main ] | ||
schedule: | ||
- cron: '0 0 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
type: [Debug, Release] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Clone GTest | ||
run: git clone https://github.com/google/googletest.git | ||
- name: Build and run | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
mkdir build && cd build | ||
cmake -DCMAKE_BUILD_TYPE=${{ matrix.type }} ../ | ||
cmake --build . | ||
./cppTutorUT |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.