Skip to content

Commit

Permalink
Adding basic structure for additional workflows format and release
Browse files Browse the repository at this point in the history
  • Loading branch information
karurochari committed Dec 8, 2024
1 parent 8654eaf commit 633fdb0
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ concurrency:
cancel-in-progress: true

on:
workflow_call:
push:
branches: [master]
paths:
Expand All @@ -24,6 +25,8 @@ on:
- "**/build.yml"

jobs:
format-checks:
uses: ./.github/workflows/format.yml
meson:
strategy:
fail-fast: false
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ concurrency:
cancel-in-progress: true

on:
workflow_call:
push:
branches: master
paths:
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: build and test
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

on:
workflow_call:
jobs:
#Add here a task for each language to be supported.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build-Env Docker Image
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true

on:
pull_request:
push:
tags:
- "v*.*.*(-.*)?"
branches: master
jobs:
build-checks:
uses: ./.github/workflows/build.yml
release:
needs: [build-checks]
name: release
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
permissions:
contents: write
steps:
#TODO https://github.com/quickjs-ng/quickjs/blob/master/.github/workflows/release.yml or https://github.com/saghul/txiki.js/blob/master/.github/workflows/release.yml for reference?

0 comments on commit 633fdb0

Please sign in to comment.