Skip to content

Commit b914a45

Browse files
committed
Update release workflow: build all variants with matrix
1 parent 008d8ea commit b914a45

File tree

1 file changed

+39
-8
lines changed

1 file changed

+39
-8
lines changed

.github/workflows/release-scheduled.yml

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
push:
1111
tags:
1212
- v[0-9]+.[0-9]+.[0-9]+
13-
env:
14-
VERSION: 4.8
1513
jobs:
1614
version:
1715
runs-on: ubuntu-latest
@@ -30,15 +28,48 @@ jobs:
3028
id: tag
3129
if: ${{ github.event_name == 'push' }}
3230
run: echo "version=$(echo ${GITHUB_REF#refs/*/} | sed -e 's/v//')" >> $GITHUB_OUTPUT
33-
test:
31+
# test:
32+
# strategy:
33+
# matrix:
34+
# os: [ubuntu-latest, windows-latest, macos-latest]
35+
# runs-on: ${{ matrix.os }}
36+
# needs: version
37+
# steps:
38+
# - name: Log version ${{ needs.version.outputs.version }}
39+
# run: echo ${{ needs.version.outputs.version }}
40+
build:
41+
needs: version
42+
runs-on: ${{ matrix.config.version }}
3443
strategy:
3544
matrix:
36-
os: [ubuntu-latest, windows-latest, macos-latest]
37-
runs-on: ${{ matrix.os }}
38-
needs: version
45+
config:
46+
- { os: linux, version: ubuntu-22.04 }
47+
- { os: linux, version: ubuntu-20.04 }
48+
- { os: linux, version: ubuntu-18.04 }
49+
- { os: windows, version: windows-2022 }
50+
- { os: windows, version: windows-2019 }
51+
- { os: macOS, version: macos-12 }
52+
- { os: macOS, version: macos-11 }
53+
- { os: macOS, version: macos-10.15 }
3954
steps:
40-
- name: Log version ${{ needs.version.outputs.version }}
41-
run: echo ${{ needs.version.outputs.version }}
55+
- name: Build (Linux)
56+
if: ${{ matrix.config.os == 'linux' }}
57+
uses: ./.github/workflows/release-linux.yml
58+
with:
59+
version: ${{ needs.version.outputs.version }}
60+
platform: ${{ matrix.config.version }}
61+
- name: Build (Windows)
62+
if: ${{ matrix.config.os == 'windows' }}
63+
uses: ./.github/workflows/release-windows.yml
64+
with:
65+
version: ${{ needs.version.outputs.version }}
66+
platform: ${{ matrix.config.version }}
67+
- name: Build (macOS)
68+
if: ${{ matrix.config.os == 'macOS' }}
69+
uses: ./.github/workflows/release-mac.yml
70+
with:
71+
version: ${{ needs.version.outputs.version }}
72+
platform: ${{ matrix.config.version }}
4273
# linux:
4374
# strategy:
4475
# matrix:

0 commit comments

Comments
 (0)