From 3be534eb2b75f4c3376bf61014c7a06d719cb9e3 Mon Sep 17 00:00:00 2001 From: Marc Date: Sat, 20 Aug 2022 16:10:00 +0100 Subject: Add macOS support (#8) Add macOS build support --- .github/workflows/linux_x86.yml | 64 +++++++++++++++++++++++++++++++++++++++++ .github/workflows/macos_x86.yml | 64 +++++++++++++++++++++++++++++++++++++++++ .github/workflows/x86_64.yml | 64 ----------------------------------------- 3 files changed, 128 insertions(+), 64 deletions(-) create mode 100644 .github/workflows/linux_x86.yml create mode 100644 .github/workflows/macos_x86.yml delete mode 100644 .github/workflows/x86_64.yml (limited to '.github/workflows') diff --git a/.github/workflows/linux_x86.yml b/.github/workflows/linux_x86.yml new file mode 100644 index 0000000..f9d536c --- /dev/null +++ b/.github/workflows/linux_x86.yml @@ -0,0 +1,64 @@ +name: libwifi (Linux) (64-Bit) + +on: [push] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Create Build Environment + run: cmake -E make_directory ${{github.workspace}}/build + + - name: Configure CMake + shell: bash + working-directory: ${{github.workspace}}/build + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build Linux X86_64 + shell: bash + working-directory: ${{github.workspace}}/build + run: cmake --build . --config $BUILD_TYPE + + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Create Build Environment + run: cmake -E make_directory ${{github.workspace}}/build + + - name: Configure CMake + shell: bash + working-directory: ${{github.workspace}}/build + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build Linux X86_64 + shell: bash + working-directory: ${{github.workspace}}/build + run: cmake --build . --config $BUILD_TYPE + + - name: Create Test Environment + run: cmake -E make_directory ${{github.workspace}}/test/build + + - name: Configure CMake + shell: bash + working-directory: ${{github.workspace}}/test/build + run: cmake ${{github.workspace}}/test + + - name: Build Tests + shell: bash + working-directory: ${{github.workspace}}/test/build + run: cmake --build . + + - name: Test Linux X86_64 + shell: bash + working-directory: ${{github.workspace}}/test/build + 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 @@ +name: libwifi (MacOS) (64-Bit) + +on: [push] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +jobs: + build: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: Create Build Environment + run: cmake -E make_directory ${{github.workspace}}/build + + - name: Configure CMake + shell: bash + working-directory: ${{github.workspace}}/build + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build MacOS X86_64 + shell: bash + working-directory: ${{github.workspace}}/build + run: cmake --build . --config $BUILD_TYPE + + test: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + + - name: Create Build Environment + run: cmake -E make_directory ${{github.workspace}}/build + + - name: Configure CMake + shell: bash + working-directory: ${{github.workspace}}/build + run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build MacOS X86_64 + shell: bash + working-directory: ${{github.workspace}}/build + run: cmake --build . --config $BUILD_TYPE + + - name: Create Test Environment + run: cmake -E make_directory ${{github.workspace}}/test/build + + - name: Configure CMake + shell: bash + working-directory: ${{github.workspace}}/test/build + run: cmake ${{github.workspace}}/test + + - name: Build Tests + shell: bash + working-directory: ${{github.workspace}}/test/build + run: cmake --build . + + - name: Test MacOS X86_64 + shell: bash + working-directory: ${{github.workspace}}/test/build + run: ctest --output-on-failure diff --git a/.github/workflows/x86_64.yml b/.github/workflows/x86_64.yml deleted file mode 100644 index cc90e1d..0000000 --- a/.github/workflows/x86_64.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: libwifi (64-Bit) - -on: [push] - -env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) - BUILD_TYPE: Release - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Create Build Environment - run: cmake -E make_directory ${{github.workspace}}/build - - - name: Configure CMake - shell: bash - working-directory: ${{github.workspace}}/build - run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE - - - name: Build X86_64 - shell: bash - working-directory: ${{github.workspace}}/build - run: cmake --build . --config $BUILD_TYPE - - test: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Create Build Environment - run: cmake -E make_directory ${{github.workspace}}/build - - - name: Configure CMake - shell: bash - working-directory: ${{github.workspace}}/build - run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE - - - name: Build X86_64 - shell: bash - working-directory: ${{github.workspace}}/build - run: cmake --build . --config $BUILD_TYPE - - - name: Create Test Environment - run: cmake -E make_directory ${{github.workspace}}/test/build - - - name: Configure CMake - shell: bash - working-directory: ${{github.workspace}}/test/build - run: cmake ${{github.workspace}}/test - - - name: Build Tests - shell: bash - working-directory: ${{github.workspace}}/test/build - run: cmake --build . - - - name: Test X86_64 - shell: bash - working-directory: ${{github.workspace}}/test/build - run: ctest --output-on-failure -- cgit 1.4.1