diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e8ee8a5 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,18 @@ +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 diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/test.yml similarity index 61% rename from .github/workflows/build-and-test.yml rename to .github/workflows/test.yml index a0cbad2..9a0462d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/test.yml @@ -1,22 +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 - run-build: true + options: MUSEN_BUILD_TESTS=ON - name: Test project uses: threeal/ctest-action@v1.1.0