From 554c9370d741c3544d6c2231639baa7a8de91adf Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Sun, 4 Aug 2024 22:35:09 +0700 Subject: [PATCH 1/2] 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 From b0edfb0c6ecd6a651364a69a3b79ba64c5ce5909 Mon Sep 17 00:00:00 2001 From: Alfi Maulana Date: Sun, 4 Aug 2024 22:35:10 +0700 Subject: [PATCH 2/2] ci: refactor deploy documentation workflow --- .../{deploy-documentation.yml => deploy.yml} | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) rename .github/workflows/{deploy-documentation.yml => deploy.yml} (57%) diff --git a/.github/workflows/deploy-documentation.yml b/.github/workflows/deploy.yml similarity index 57% rename from .github/workflows/deploy-documentation.yml rename to .github/workflows/deploy.yml index 56106e6..15ecc0e 100644 --- a/.github/workflows/deploy-documentation.yml +++ b/.github/workflows/deploy.yml @@ -1,30 +1,29 @@ -name: Deploy Documentation +name: Deploy on: workflow_dispatch: push: branches: [master] jobs: - deploy-documentation: + deploy-docs: + name: Deploy Documentation runs-on: ubuntu-20.04 permissions: id-token: write pages: write environment: name: github-pages - url: ${{ steps.deploy-pages.outputs.page_url }} + url: ${{ steps.deploy-docs.outputs.page_url }} concurrency: group: pages cancel-in-progress: true steps: - - name: Checkout this repository + - name: Checkout Project uses: actions/checkout@v4.1.7 - - name: Install documentation dependencies - run: | - sudo apt-get update - sudo apt-get install -y doxygen + - name: Install Doxygen + run: sudo apt-get install -y doxygen - - name: Build documentation + - name: Build Documentation run: doxygen - name: Upload Documentation @@ -32,6 +31,6 @@ jobs: with: path: doc - - name: Deploy Pages - id: deploy-pages + - name: Deploy Documentation + id: deploy-docs uses: actions/deploy-pages@v4.0.5