@@ -2,47 +2,47 @@ name: Release
2
2
on :
3
3
push :
4
4
tags :
5
- - ' v* '
5
+ - " v* "
6
6
workflow_dispatch :
7
7
inputs :
8
8
revision :
9
- description : ' Tag or revision to build binaries for'
9
+ description : " Tag or revision to build binaries for"
10
10
type : string
11
11
required : true
12
12
create_release :
13
- description : ' Should publish the binary or not'
13
+ description : " Should publish the binary or not"
14
14
required : true
15
- default : ' false'
15
+ default : " false"
16
16
17
17
jobs :
18
18
build-and-upload-artifacts :
19
- name : ' Build and upload artifacts'
19
+ name : " Build and upload artifacts"
20
20
strategy :
21
21
matrix :
22
22
include :
23
- - platform : ' ubuntu-22.04'
24
- container : ' gcc:9.5.0-buster'
25
- config : ' dev'
26
- - platform : ' ubuntu-22.04'
27
- container : ' gcc:9.5.0-buster'
28
- config : ' release'
23
+ - platform : " ubuntu-22.04"
24
+ container : " gcc:9.5.0-buster"
25
+ config : " dev"
26
+ - platform : " ubuntu-22.04"
27
+ container : " gcc:9.5.0-buster"
28
+ config : " release"
29
29
# macOS 14 => arm64
30
- - platform : ' macos-14'
31
- container : ' '
32
- config : ' release'
30
+ - platform : " macos-14"
31
+ container : " "
32
+ config : " release"
33
33
runs-on : ${{ matrix.platform }}
34
34
container : ${{ matrix.container }}
35
35
env :
36
36
TAG : ${{ github.event.ref }}
37
37
permissions :
38
- contents : ' read'
39
- id-token : ' write'
38
+ contents : " read"
39
+ id-token : " write"
40
40
defaults :
41
41
run :
42
42
shell : bash
43
43
steps :
44
- - uses : actions/checkout@v3
45
- - name : ' 📝 Check version'
44
+ - uses : actions/checkout@v4
45
+ - name : " 📝 Check version"
46
46
run : |
47
47
set -euo pipefail
48
48
if [[ "${TAG:-}" == v* ]]; then
51
51
TAG_LIKE="$(grep '## v' CHANGELOG.md | head -n 1 | cut -d ' ' -f 2)"
52
52
fi
53
53
NEW_VERSION="${TAG_LIKE/v/}" ./tools/version_check.sh
54
- - name : ' 🐍 Install Bazelisk'
54
+ - name : " 🐍 Install Bazelisk"
55
55
run : |
56
56
if ! command -v bazelisk; then
57
57
if [ "$RUNNER_OS" == "Windows" ]; then
@@ -64,13 +64,13 @@ jobs:
64
64
fi
65
65
fi
66
66
- id : auth
67
- name : ' 🔓 Authenticate to Google Cloud'
68
- uses : ' google-github-actions/auth@v1 '
67
+ name : " 🔓 Authenticate to Google Cloud"
68
+ uses : " google-github-actions/auth@v2 "
69
69
with :
70
70
workload_identity_provider : ${{ secrets.GCP_IDENTITY_PROVIDER }}
71
71
service_account : ${{ secrets.GCP_SERVICE_ACCOUNT }}
72
72
create_credentials_file : true
73
- - name : ' 🚧 Build scip-clang'
73
+ - name : " 🚧 Build scip-clang"
74
74
run : |
75
75
# Stop Windows from converting the // to /
76
76
# https://github.com/bazelbuild/bazel/commit/866ecc8c3d5e0b899e3f0c9c6b2265f16daae842
99
99
fi
100
100
env :
101
101
CONFIG : ${{ matrix.config }}
102
- - name : ' 🔎 Identify OS'
102
+ - name : " 🔎 Identify OS"
103
103
run : echo "OS=$(uname -s | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_ENV"
104
104
# - name: '🪵 Upload log'
105
105
# uses: actions/upload-artifact@v3
@@ -120,19 +120,19 @@ jobs:
120
120
OS : ${{ env.OS }}
121
121
CONFIG : ${{ matrix.config }}
122
122
- name : ${{ format('📦 Store binary ({0})', matrix.config) }}
123
- uses : actions/upload-artifact@v3
123
+ uses : actions/upload-artifact@v4
124
124
with :
125
125
name : ${{ matrix.platform }}-${{ matrix.config }}-release-artifacts
126
126
path : ${{ env.outBinaryPath }}
127
127
128
128
create-release :
129
- name : ' Create release'
129
+ name : " Create release"
130
130
if : github.event_name != 'workflow_dispatch' || inputs.create_release
131
131
needs : build-and-upload-artifacts
132
- runs-on : ' ubuntu-20.04'
132
+ runs-on : " ubuntu-20.04"
133
133
steps :
134
- - uses : actions/checkout@v3
135
- - name : ' 📝 Create Release'
134
+ - uses : actions/checkout@v4
135
+ - name : " 📝 Create Release"
136
136
run : |
137
137
REV="$INPUT_REVISION"
138
138
if [ "$TRIGGER" != "workflow_dispatch" ]; then
@@ -147,9 +147,9 @@ jobs:
147
147
INPUT_REVISION : ${{ inputs.revision }}
148
148
# Download everything to avoid spelling out the different
149
149
# platforms here.
150
- - name : ' 📥 Download all artifacts'
151
- uses : actions/download-artifact@v3
152
- - name : ' 📤 Upload artifacts for release'
150
+ - name : " 📥 Download all artifacts"
151
+ uses : actions/download-artifact@v4
152
+ - name : " 📤 Upload artifacts for release"
153
153
run : gh release upload "${GITHUB_REF/refs\/tags\//}" ./*-release-artifacts/*
154
154
env :
155
155
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments