-
Notifications
You must be signed in to change notification settings - Fork 6
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
4 changed files
with
118 additions
and
97 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Linux | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
name: Ubuntu Latest GCC | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install cmake ninja-build python3 | ||
ninja --version | ||
cmake --version | ||
gcc --version | ||
python --version | ||
- name: Configure for debug | ||
shell: bash | ||
run: cmake -S . -B build -DDISTRIBUTION=debug -G "Ninja" | ||
- name: Build debug | ||
shell: bash | ||
run: cmake --build build | ||
- name: Run gtest | ||
shell: bash | ||
run: | | ||
./bin/hex2bin_gtest | ||
- name: Run test | ||
shell: bash | ||
run: | | ||
python test.py --file bin/hex2bin | ||
- name: Configure for release | ||
shell: bash | ||
run: cmake -S . -B build -DDISTRIBUTION=release -G "Ninja" | ||
- name: Build release | ||
shell: bash | ||
run: cmake --build build | ||
- name: Run test | ||
shell: bash | ||
run: | | ||
python test.py --file bin/hex2bin |
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,55 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
|
||
name: Build | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
name: Windows 2019 MSVC | ||
# The type of runner that the job will run on | ||
runs-on: windows-2019 | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: | | ||
choco install python3 | ||
python --version | ||
- name: Configure for debug | ||
shell: bash | ||
run: cmake -S . -B build -DDISTRIBUTION=debug -G "Visual Studio 16 2019" | ||
- name: Build debug | ||
shell: bash | ||
run: cmake --build build | ||
- name: Run gtest | ||
shell: bash | ||
run: | | ||
./bin/Debug/hex2bin_gtest.exe | ||
- name: Run test | ||
shell: bash | ||
run: | | ||
python test.py --file bin/Debug/hex2bin.exe | ||
- name: Configure for release | ||
shell: bash | ||
run: cmake -S . -B build -DDISTRIBUTION=release -G "Visual Studio 16 2019" | ||
- name: Build release | ||
shell: bash | ||
run: cmake --build build | ||
- name: Run test | ||
shell: bash | ||
run: | | ||
python test.py --file bin/Release/hex2bin.exe |
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