From e7db9c20b0a270c914761ec8d84f612223ee2d7f Mon Sep 17 00:00:00 2001 From: Gozzim <80704304+Gozzim@users.noreply.github.com> Date: Sun, 1 Oct 2023 20:35:09 +0200 Subject: [PATCH] fix(GitHub): Separate Workflows --- .github/workflows/build.yml | 24 ++++++++++++++++++++++++ .github/workflows/test.yml | 28 ++++++---------------------- 2 files changed, 30 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1b48b54 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: build + +on: + push: + branches: + - 'master' + pull_request: + workflow_dispatch: + +jobs: + build: + name: build + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: build + run: | + mkdir build + cd build + cmake .. + make diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 909b855..4b4965f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,34 +1,18 @@ -name: LZW +name: run-tests on: - push: + workflow_run: + workflows: ['build'] branches: - - 'master' - pull_request: - workflow_dispatch: + - master + types: + - completed jobs: - build: - name: build - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: build - run: | - mkdir build - cd build - cmake .. - make - test: name: test runs-on: ubuntu-latest - needs: build - steps: - name: Checkout code uses: actions/checkout@v2