diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/linux_x86.yml (renamed from .github/workflows/x86_64.yml) | 8 | ||||
| -rw-r--r-- | .github/workflows/macos_x86.yml | 64 |
2 files changed, 68 insertions, 4 deletions
| diff --git a/.github/workflows/x86_64.yml b/.github/workflows/linux_x86.yml index cc90e1d..f9d536c 100644 --- a/.github/workflows/x86_64.yml +++ b/.github/workflows/linux_x86.yml | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | name: libwifi (64-Bit) | 1 | name: libwifi (Linux) (64-Bit) |
| 2 | 2 | ||
| 3 | on: [push] | 3 | on: [push] |
| 4 | 4 | ||
| @@ -21,7 +21,7 @@ jobs: | |||
| 21 | working-directory: ${{github.workspace}}/build | 21 | working-directory: ${{github.workspace}}/build |
| 22 | run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE | 22 | run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE |
| 23 | 23 | ||
| 24 | - name: Build X86_64 | 24 | - name: Build Linux X86_64 |
| 25 | shell: bash | 25 | shell: bash |
| 26 | working-directory: ${{github.workspace}}/build | 26 | working-directory: ${{github.workspace}}/build |
| 27 | run: cmake --build . --config $BUILD_TYPE | 27 | run: cmake --build . --config $BUILD_TYPE |
| @@ -40,7 +40,7 @@ jobs: | |||
| 40 | working-directory: ${{github.workspace}}/build | 40 | working-directory: ${{github.workspace}}/build |
| 41 | run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE | 41 | run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE |
| 42 | 42 | ||
| 43 | - name: Build X86_64 | 43 | - name: Build Linux X86_64 |
| 44 | shell: bash | 44 | shell: bash |
| 45 | working-directory: ${{github.workspace}}/build | 45 | working-directory: ${{github.workspace}}/build |
| 46 | run: cmake --build . --config $BUILD_TYPE | 46 | run: cmake --build . --config $BUILD_TYPE |
| @@ -58,7 +58,7 @@ jobs: | |||
| 58 | working-directory: ${{github.workspace}}/test/build | 58 | working-directory: ${{github.workspace}}/test/build |
| 59 | run: cmake --build . | 59 | run: cmake --build . |
| 60 | 60 | ||
| 61 | - name: Test X86_64 | 61 | - name: Test Linux X86_64 |
| 62 | shell: bash | 62 | shell: bash |
| 63 | working-directory: ${{github.workspace}}/test/build | 63 | working-directory: ${{github.workspace}}/test/build |
| 64 | run: ctest --output-on-failure | 64 | run: ctest --output-on-failure |
| diff --git a/.github/workflows/macos_x86.yml b/.github/workflows/macos_x86.yml new file mode 100644 index 0000000..abdb664 --- /dev/null +++ b/.github/workflows/macos_x86.yml | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | name: libwifi (MacOS) (64-Bit) | ||
| 2 | |||
| 3 | on: [push] | ||
| 4 | |||
| 5 | env: | ||
| 6 | # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
| 7 | BUILD_TYPE: Release | ||
| 8 | |||
| 9 | jobs: | ||
| 10 | build: | ||
| 11 | runs-on: macos-latest | ||
| 12 | |||
| 13 | steps: | ||
| 14 | - uses: actions/checkout@v2 | ||
| 15 | |||
| 16 | - name: Create Build Environment | ||
| 17 | run: cmake -E make_directory ${{github.workspace}}/build | ||
| 18 | |||
| 19 | - name: Configure CMake | ||
| 20 | shell: bash | ||
| 21 | working-directory: ${{github.workspace}}/build | ||
| 22 | run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE | ||
| 23 | |||
| 24 | - name: Build MacOS X86_64 | ||
| 25 | shell: bash | ||
| 26 | working-directory: ${{github.workspace}}/build | ||
| 27 | run: cmake --build . --config $BUILD_TYPE | ||
| 28 | |||
| 29 | test: | ||
| 30 | runs-on: macos-latest | ||
| 31 | |||
| 32 | steps: | ||
| 33 | - uses: actions/checkout@v2 | ||
| 34 | |||
| 35 | - name: Create Build Environment | ||
| 36 | run: cmake -E make_directory ${{github.workspace}}/build | ||
| 37 | |||
| 38 | - name: Configure CMake | ||
| 39 | shell: bash | ||
| 40 | working-directory: ${{github.workspace}}/build | ||
| 41 | run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE | ||
| 42 | |||
| 43 | - name: Build MacOS X86_64 | ||
| 44 | shell: bash | ||
| 45 | working-directory: ${{github.workspace}}/build | ||
| 46 | run: cmake --build . --config $BUILD_TYPE | ||
| 47 | |||
| 48 | - name: Create Test Environment | ||
| 49 | run: cmake -E make_directory ${{github.workspace}}/test/build | ||
| 50 | |||
| 51 | - name: Configure CMake | ||
| 52 | shell: bash | ||
| 53 | working-directory: ${{github.workspace}}/test/build | ||
| 54 | run: cmake ${{github.workspace}}/test | ||
| 55 | |||
| 56 | - name: Build Tests | ||
| 57 | shell: bash | ||
| 58 | working-directory: ${{github.workspace}}/test/build | ||
| 59 | run: cmake --build . | ||
| 60 | |||
| 61 | - name: Test MacOS X86_64 | ||
| 62 | shell: bash | ||
| 63 | working-directory: ${{github.workspace}}/test/build | ||
| 64 | run: ctest --output-on-failure | ||
