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 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .github/workflows/linux_x86.yml (limited to '.github/workflows/linux_x86.yml') 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 -- cgit 1.4.1