Skip to content

Commit

Permalink
cleanup workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
amazy committed Sep 26, 2024
1 parent dd79fe3 commit 86f462a
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 18 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/all-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
aws_secret_access_key: ${{ secrets.OT_AWS_SECRET_ACCESS_KEY }}

win-stable-build:
if: ${{ github.ref == 'refs/heads/master' }}
needs: [pre-build, build-stone-wasm-stable]
uses: ./.github/workflows/build-win-binaries.yml
with:
Expand All @@ -73,6 +74,7 @@ jobs:
aws_secret_access_key: ${{ secrets.OT_AWS_SECRET_ACCESS_KEY }}

win-unstable-build:
if: ${{ github.ref == 'refs/heads/master' }}
needs: [pre-build, build-stone-wasm-unstable]
uses: ./.github/workflows/build-win-binaries.yml
with:
Expand All @@ -84,6 +86,7 @@ jobs:
aws_secret_access_key: ${{ secrets.OT_AWS_SECRET_ACCESS_KEY }}

macos-stable-build:
if: ${{ github.ref == 'refs/heads/master' }}
needs: [pre-build, build-stone-wasm-stable, build-volview-dist-stable]
uses: ./.github/workflows/build-macos-binaries.yml
with:
Expand All @@ -95,6 +98,7 @@ jobs:
aws_secret_access_key: ${{ secrets.OT_AWS_SECRET_ACCESS_KEY }}

macos-unstable-build:
if: ${{ github.ref == 'refs/heads/master' }}
needs: [pre-build, build-stone-wasm-unstable, build-volview-dist-unstable]
uses: ./.github/workflows/build-macos-binaries.yml
with:
Expand All @@ -107,6 +111,7 @@ jobs:


macos-stable-package:
if: ${{ github.ref == 'refs/heads/master' }}
needs: [pre-build, macos-stable-build]
uses: ./.github/workflows/build-macos-package.yml
with:
Expand All @@ -118,6 +123,7 @@ jobs:
aws_secret_access_key: ${{ secrets.OT_AWS_SECRET_ACCESS_KEY }}

macos-unstable-package:
if: ${{ github.ref == 'refs/heads/master' }}
needs: [pre-build, macos-unstable-build]
uses: ./.github/workflows/build-macos-package.yml
with:
Expand All @@ -130,6 +136,7 @@ jobs:


build-windows-installer:
if: ${{ github.ref == 'refs/heads/master' }}
needs: [pre-build, win-stable-build] #, TODO: build win binaries as well build-win-binaries-unstable]
uses: ./.github/workflows/build-windows-installer.yml
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-all-dockers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ on:

jobs:
build-docker-stable:
# no need to build the stable image on branches
if: ${{ github.ref != 'refs/heads/master' }}
uses: ./.github/workflows/build-docker.yml
with:
runner: ${{ matrix.config.runner }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ jobs:
if: inputs.is_tag == 'true'
run: ./local-build.sh version=${{ inputs.stable_unstable }} platform=${{ inputs.platform }} image=full type=ci step=push currentTag=${{ inputs.current_branch_tag }}-full-${{ inputs.stable_unstable }} pushTag=latest-full isTag=${{ inputs.is_tag }}

- name: Setup tmate session
if: ${{ failure() && inputs.runner_type == 'github-hosted' }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
timeout-minutes: 20
# - name: Setup tmate session
# if: ${{ failure() && inputs.runner_type == 'github-hosted' }}
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true
# timeout-minutes: 20
12 changes: 6 additions & 6 deletions .github/workflows/build-macos-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}

- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
timeout-minutes: 20
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true
# timeout-minutes: 20
12 changes: 6 additions & 6 deletions .github/workflows/build-win-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}

- name: Setup tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
timeout-minutes: 20
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true
# timeout-minutes: 20

0 comments on commit 86f462a

Please sign in to comment.