Skip to content

Commit

Permalink
Fix format minimal job I
Browse files Browse the repository at this point in the history
  • Loading branch information
karurochari committed Dec 8, 2024
1 parent 633fdb0 commit a3bed67
Show file tree
Hide file tree
Showing 6 changed files with 331 additions and 21 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: build and test
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-build
cancel-in-progress: true

on:
Expand All @@ -27,7 +27,7 @@ on:
jobs:
format-checks:
uses: ./.github/workflows/format.yml
meson:
linux-amd64:
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
name: ubuntu-meson-logs
path: |
build/meson-logs/**/*
macos:
macos-arm64:
runs-on: macos-14
timeout-minutes: 8
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Test Build-Env Docker Image
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-docker-test
cancel-in-progress: true

on:
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
name: Build-Env Docker Image
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-docker
cancel-in-progress: true

on:
workflow_call:
workflow_dispatch:
push:
branches: master
paths:
- "**Dockerfile"
- "**docker.yml"
workflow_dispatch:
schedule:
- cron: "25 1 5 * *"

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: build and test
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-format
cancel-in-progress: true

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

on:
Expand All @@ -9,15 +9,16 @@ on:
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?
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:
- run: exit 0
#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?
Loading

0 comments on commit a3bed67

Please sign in to comment.