Skip to content

Commit

Permalink
Update distributable dispatch workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Aug 22, 2024
1 parent 7882b52 commit 08b27a5
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 113 deletions.
71 changes: 0 additions & 71 deletions .github/workflows/distributable-dispatch.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/linux-sanitizer.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/linux-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,45 @@ jobs:
env:
METACALL_BUILD_TYPE: ${{ matrix.build }}
METACALL_BASE_IMAGE: ${{ matrix.image }}

linux-sanitizer-test:
name: Linux GCC Sanitizer Test
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
image: ["debian:trixie-slim", "debian:bookworm-slim", "ubuntu:noble", "ubuntu:jammy"]
sanitizer: [address-sanitizer, thread-sanitizer] # TODO: memory-sanitizer not supported by GCC

env:
SANITIZER_SKIP_SUMMARY: 1

steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install, build and run thread sanitizer tests
run: ./docker-compose.sh test-${{ matrix.sanitizer }}
env:
METACALL_BUILD_TYPE: debug
METACALL_BASE_IMAGE: ${{ matrix.image }}

linux-distributable:
name: Linux Distributable Dispatch
needs: [linux-test, linux-sanitizer-test]
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
steps:
- name: Linux Workflow Dispatch
uses: convictional/[email protected]
with:
owner: metacall
repo: distributable-linux
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
workflow_file_name: ci.yml
wait_workflow: true
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
ref: ${{ github.head_ref || github.ref_name }}
29 changes: 28 additions & 1 deletion .github/workflows/macos-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
cancel-in-progress: true

jobs:
mac-test:
macos-test:
name: MacOS Clang Test
runs-on: macos-latest

Expand Down Expand Up @@ -95,3 +95,30 @@ jobs:
bash ../tools/metacall-build.sh $METACALL_BUILD_OPTIONS
env:
METACALL_BUILD_OPTIONS: ${{ matrix.options.build }} tests

macos-distributable:
name: MacOS Distributable Dispatch
needs: macos-test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
steps:
- name: Homebrew Workflow Dispatch
uses: convictional/[email protected]
with:
owner: metacall
repo: homebrew
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
workflow_file_name: test.yml
wait_workflow: true
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
ref: ${{ github.head_ref || github.ref_name }}
- name: MacOS Workflow Dispatch
uses: convictional/[email protected]
with:
owner: metacall
repo: distributable-macos
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
workflow_file_name: ci.yml
wait_workflow: true
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
ref: ${{ github.head_ref || github.ref_name }}
17 changes: 17 additions & 0 deletions .github/workflows/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,20 @@ jobs:
run: cmd.exe /c "powershell ..\tools\metacall-build.ps1 $Env:METACALL_BUILD_OPTIONS"
env:
METACALL_BUILD_OPTIONS: ${{ matrix.options.build }} tests

windows-distributable:
name: Windows Distributable Dispatch
needs: windows-test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
steps:
- name: Windows Workflow Dispatch
uses: convictional/[email protected]
with:
owner: metacall
repo: distributable-windows
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
workflow_file_name: ci.yml
wait_workflow: true
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
ref: ${{ github.head_ref || github.ref_name }}

0 comments on commit 08b27a5

Please sign in to comment.