Skip to content

Commit 9df057e

Browse files
committed
* Update other workflows so they can be called from the main workflow
1 parent 63e5ec2 commit 9df057e

4 files changed

Lines changed: 32 additions & 60 deletions

File tree

.github/workflows/freebsd_build.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
name: FreeBSD Build
22

33
on:
4-
push:
5-
paths:
6-
- '**.c'
7-
- '**.h'
8-
- '**/CMakeLists.txt'
9-
- '.github/workflows/freebsd_build.yml'
10-
pull_request:
11-
paths:
12-
- '**.c'
13-
- '**.h'
14-
- '**/CMakeLists.txt'
15-
- '.github/workflows/freebsd_build.yml'
4+
workflow_call:
5+
inputs:
6+
ring-version:
7+
required: true
8+
type: string
169

1710
jobs:
1811
build:
@@ -47,7 +40,7 @@ jobs:
4740
4841
run: |
4942
# Clone Ring Language
50-
git clone --branch v1.23 --depth 1 https://github.com/ring-lang/ring.git ring
43+
git clone --branch ${{ inputs.ring-version }} --depth 1 https://github.com/ring-lang/ring.git ring
5144
cd ring
5245
5346
# Set RING environment variable

.github/workflows/macos_build.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
name: macOS Build
22

33
on:
4-
push:
5-
paths:
6-
- '**.c'
7-
- '**.h'
8-
- '**/CMakeLists.txt'
9-
- '.github/workflows/macos_build.yml'
10-
pull_request:
11-
paths:
12-
- '**.c'
13-
- '**.h'
14-
- '**/CMakeLists.txt'
15-
- '.github/workflows/macos_build.yml'
4+
workflow_call:
5+
inputs:
6+
ring-version:
7+
required: true
8+
type: string
169

1710
jobs:
1811
build:
@@ -38,7 +31,7 @@ jobs:
3831
with:
3932
repository: ring-lang/ring
4033
path: ring
41-
ref: v1.23
34+
ref: ${{ inputs.ring-version }}
4235

4336
- name: Build and Install Ring Language
4437
run: |

.github/workflows/ubuntu_build.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
name: Ubuntu Build
22

33
on:
4-
push:
5-
paths:
6-
- '**.c'
7-
- '**.h'
8-
- '**/CMakeLists.txt'
9-
- '.github/workflows/ubuntu_build.yml'
10-
pull_request:
11-
paths:
12-
- '**.c'
13-
- '**.h'
14-
- '**/CMakeLists.txt'
15-
- '.github/workflows/ubuntu_build.yml'
4+
workflow_call:
5+
inputs:
6+
ring-version:
7+
required: true
8+
type: string
169

1710
jobs:
1811
build:
@@ -43,7 +36,7 @@ jobs:
4336
with:
4437
repository: ring-lang/ring
4538
path: ring
46-
ref: v1.23
39+
ref: ${{ inputs.ring-version }}
4740

4841
- name: Build and Install Ring Language
4942
run: |

.github/workflows/windows_build.yml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
11
name: Windows Build
22

33
on:
4-
push:
5-
paths:
6-
- '**.c'
7-
- '**.h'
8-
- '**/CMakeLists.txt'
9-
- '.github/workflows/windows_build.yml'
10-
pull_request:
11-
paths:
12-
- '**.c'
13-
- '**.h'
14-
- '**/CMakeLists.txt'
15-
- '.github/workflows/windows_build.yml'
4+
workflow_call:
5+
inputs:
6+
ring-version:
7+
required: true
8+
type: string
169

1710
jobs:
1811
build:
1912
runs-on: windows-latest
20-
13+
2114
strategy:
2215
matrix:
2316
include:
24-
- arch: Win32
25-
arch_name: i386
26-
- arch: x64
27-
arch_name: amd64
28-
- arch: ARM64
29-
arch_name: arm64
17+
- arch: Win32
18+
arch_name: i386
19+
- arch: x64
20+
arch_name: amd64
21+
- arch: ARM64
22+
arch_name: arm64
3023

3124
steps:
3225
- name: Checkout ring-webview
@@ -39,7 +32,7 @@ jobs:
3932
with:
4033
repository: ring-lang/ring
4134
path: ring
42-
ref: v1.23
35+
ref: ${{ inputs.ring-version }}
4336

4437
- name: Configure and Build Ring Language for ${{ matrix.arch_name }}
4538
shell: cmd
@@ -64,4 +57,4 @@ jobs:
6457
uses: actions/upload-artifact@v4
6558
with:
6659
name: ring-webview-windows-${{ matrix.arch_name }}
67-
path: lib
60+
path: lib

0 commit comments

Comments
 (0)