Skip to content

Commit

Permalink
Push and pull request event workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
glektarssza committed Apr 11, 2024
1 parent 6c925e5 commit 575d9f3
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/onPullRequest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: On Pull Request
on:
pull_request:
branches:
- main
jobs:
build:
name: Build
uses: ./.github/workflows/reusable/build.yaml
strategy:
fail-fast: true
matrix:
build-os:
- ubuntu-latest
- macos-latest
- windows-latest
build-configuration:
- Debug
- Release
secrets:
github-token: ${{github.token}}
with:
build-os: ${{matrix.build-os}}
build-configuration: ${{matrix.build-configuration}}
test:
name: Test
uses: ./.github/workflows/reusable/test.yaml
strategy:
fail-fast: true
matrix:
build-os:
- ubuntu-latest
- macos-latest
- windows-latest
secrets:
github-token: ${{github.token}}
with:
build-os: ${{matrix.build-os}}
39 changes: 39 additions & 0 deletions .github/workflows/onPush.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: On Push
on:
push:
branches:
- main
jobs:
build:
name: Build
uses: ./.github/workflows/reusable/build.yaml
strategy:
fail-fast: true
matrix:
build-os:
- ubuntu-latest
- macos-latest
- windows-latest
build-configuration:
- Debug
- Release
secrets:
github-token: ${{github.token}}
with:
build-os: ${{matrix.build-os}}
build-configuration: ${{matrix.build-configuration}}
test:
name: Test
uses: ./.github/workflows/reusable/test.yaml
strategy:
fail-fast: true
matrix:
build-os:
- ubuntu-latest
- macos-latest
- windows-latest
secrets:
github-token: ${{github.token}}
with:
build-os: ${{matrix.build-os}}

0 comments on commit 575d9f3

Please sign in to comment.