Skip to content

Commit 08b27a5

Browse files
committed
Update distributable dispatch workflows.
1 parent 7882b52 commit 08b27a5

File tree

5 files changed

+87
-113
lines changed

5 files changed

+87
-113
lines changed

.github/workflows/distributable-dispatch.yml

Lines changed: 0 additions & 71 deletions
This file was deleted.

.github/workflows/linux-sanitizer.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.github/workflows/linux-test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,45 @@ jobs:
3535
env:
3636
METACALL_BUILD_TYPE: ${{ matrix.build }}
3737
METACALL_BASE_IMAGE: ${{ matrix.image }}
38+
39+
linux-sanitizer-test:
40+
name: Linux GCC Sanitizer Test
41+
runs-on: ubuntu-latest
42+
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
image: ["debian:trixie-slim", "debian:bookworm-slim", "ubuntu:noble", "ubuntu:jammy"]
47+
sanitizer: [address-sanitizer, thread-sanitizer] # TODO: memory-sanitizer not supported by GCC
48+
49+
env:
50+
SANITIZER_SKIP_SUMMARY: 1
51+
52+
steps:
53+
- name: Check out the repository
54+
uses: actions/checkout@v4
55+
with:
56+
fetch-depth: 0
57+
58+
- name: Install, build and run thread sanitizer tests
59+
run: ./docker-compose.sh test-${{ matrix.sanitizer }}
60+
env:
61+
METACALL_BUILD_TYPE: debug
62+
METACALL_BASE_IMAGE: ${{ matrix.image }}
63+
64+
linux-distributable:
65+
name: Linux Distributable Dispatch
66+
needs: [linux-test, linux-sanitizer-test]
67+
runs-on: ubuntu-latest
68+
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
69+
steps:
70+
- name: Linux Workflow Dispatch
71+
uses: convictional/[email protected]
72+
with:
73+
owner: metacall
74+
repo: distributable-linux
75+
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
76+
workflow_file_name: ci.yml
77+
wait_workflow: true
78+
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
79+
ref: ${{ github.head_ref || github.ref_name }}

.github/workflows/macos-test.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18-
mac-test:
18+
macos-test:
1919
name: MacOS Clang Test
2020
runs-on: macos-latest
2121

@@ -95,3 +95,30 @@ jobs:
9595
bash ../tools/metacall-build.sh $METACALL_BUILD_OPTIONS
9696
env:
9797
METACALL_BUILD_OPTIONS: ${{ matrix.options.build }} tests
98+
99+
macos-distributable:
100+
name: MacOS Distributable Dispatch
101+
needs: macos-test
102+
runs-on: ubuntu-latest
103+
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
104+
steps:
105+
- name: Homebrew Workflow Dispatch
106+
uses: convictional/[email protected]
107+
with:
108+
owner: metacall
109+
repo: homebrew
110+
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
111+
workflow_file_name: test.yml
112+
wait_workflow: true
113+
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
114+
ref: ${{ github.head_ref || github.ref_name }}
115+
- name: MacOS Workflow Dispatch
116+
uses: convictional/[email protected]
117+
with:
118+
owner: metacall
119+
repo: distributable-macos
120+
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
121+
workflow_file_name: ci.yml
122+
wait_workflow: true
123+
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
124+
ref: ${{ github.head_ref || github.ref_name }}

.github/workflows/windows-test.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,20 @@ jobs:
6464
run: cmd.exe /c "powershell ..\tools\metacall-build.ps1 $Env:METACALL_BUILD_OPTIONS"
6565
env:
6666
METACALL_BUILD_OPTIONS: ${{ matrix.options.build }} tests
67+
68+
windows-distributable:
69+
name: Windows Distributable Dispatch
70+
needs: windows-test
71+
runs-on: ubuntu-latest
72+
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master'
73+
steps:
74+
- name: Windows Workflow Dispatch
75+
uses: convictional/[email protected]
76+
with:
77+
owner: metacall
78+
repo: distributable-windows
79+
github_token: ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
80+
workflow_file_name: ci.yml
81+
wait_workflow: true
82+
client_payload: '{"ref": "${{ github.head_ref || github.ref_name }}"}'
83+
ref: ${{ github.head_ref || github.ref_name }}

0 commit comments

Comments
 (0)