From d9f8b8920ba213ad68a47cb56d3ef5a826e81eea Mon Sep 17 00:00:00 2001 From: ntut-xuan Date: Thu, 29 Feb 2024 01:27:58 +0800 Subject: [PATCH 1/4] Implement: Macintosh support --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 22cdf1a8..76e1c2d6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, macos-latest] compiler: [{ cc: gcc, cxx: g++ }, { cc: clang, cxx: clang++ }] build_type: [Release] binary: [linux-binary] From 44fd7d48c5fea9b20a2ad07ca04e0af434c1076a Mon Sep 17 00:00:00 2001 From: ntut-xuan Date: Thu, 29 Feb 2024 01:46:30 +0800 Subject: [PATCH 2/4] Implement: Add "Building Project" steps --- .github/workflows/build.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 76e1c2d6..27a3299d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest] compiler: [{ cc: gcc, cxx: g++ }, { cc: clang, cxx: clang++ }] build_type: [Release] binary: [linux-binary] @@ -20,6 +20,8 @@ jobs: - os: windows-latest build_type: Release binary: windows-binary + - os: macos-latest + build_type: Release steps: - if: matrix.os == 'ubuntu-latest' @@ -47,3 +49,9 @@ jobs: run: | cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} cmake --build build --config ${{ matrix.build_type }} + + - name: Building Project + if: matrix.os == 'macos-latest' + run: | + cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + cmake --build build --config ${{ matrix.build_type }} \ No newline at end of file From feca072a3a0fc9abd72d1a45b5038475fc076508 Mon Sep 17 00:00:00 2001 From: ntut-xuan Date: Thu, 29 Feb 2024 01:56:54 +0800 Subject: [PATCH 3/4] Chore: Add EOF --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 27a3299d..01eb7920 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,4 +54,4 @@ jobs: if: matrix.os == 'macos-latest' run: | cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} - cmake --build build --config ${{ matrix.build_type }} \ No newline at end of file + cmake --build build --config ${{ matrix.build_type }} From b086919e27bea626feee19b27e795a7ceb77a96e Mon Sep 17 00:00:00 2001 From: Uriah Xuan Date: Thu, 29 Feb 2024 13:28:39 +0800 Subject: [PATCH 4/4] Update build.yml --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 01eb7920..e61267bc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -54,4 +54,4 @@ jobs: if: matrix.os == 'macos-latest' run: | cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} - cmake --build build --config ${{ matrix.build_type }} + cmake --build build