Skip to content

Commit

Permalink
fix(GitHub): Separate Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Gozzim committed Oct 1, 2023
1 parent 3378032 commit e7db9c2
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 22 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
28 changes: 6 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e7db9c2

Please sign in to comment.