From 554c9370d741c3544d6c2231639baa7a8de91adf Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Sun, 4 Aug 2024 22:35:09 +0700 Subject: [PATCH] ci: separate build and test workflows --- .github/workflows/build.yml | 19 +++++++++++++++++++ .../{build-and-test.yml => test.yml} | 10 +++++----- 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/build.yml rename .github/workflows/{build-and-test.yml => test.yml} (66%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..ebbc6db --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,19 @@ +name: Build +on: + workflow_dispatch: + pull_request: + push: + branches: [master] +jobs: + build-project: + name: Build Project + runs-on: ubuntu-20.04 + steps: + - name: Checkout Project + uses: actions/checkout@v4.1.7 + + - name: Build Project + uses: threeal/cmake-action@v1.3.0 + with: + options: MUSEN_BUILD_EXAMPLES=ON + run-build: true diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/test.yml similarity index 66% rename from .github/workflows/build-and-test.yml rename to .github/workflows/test.yml index a0cbad2..4ec5c6a 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/test.yml @@ -1,21 +1,21 @@ -name: Build and Test +name: Test on: workflow_dispatch: pull_request: - branches: [master] push: branches: [master] jobs: - build-and-test: + test-project: + name: Test Project runs-on: ubuntu-20.04 steps: - - name: Checkout this repository + - name: Checkout Project uses: actions/checkout@v4.1.7 - name: Build project uses: threeal/cmake-action@v1.3.0 with: - options: MUSEN_BUILD_TESTS=ON MUSEN_BUILD_EXAMPLES=ON + options: MUSEN_BUILD_TESTS=ON run-build: true - name: Test project