77jobs :
88 setup_version_properties :
99 name : Setup version properties
10- runs-on : ubuntu-latest
10+ runs-on : ubuntu-22.04
1111 outputs :
1212 VERSION_BRANCH : ${{ steps.setup_version_properties.outputs.VERSION_BRANCH }}
1313 VERSION_BUILD : ${{ steps.setup_version_properties.outputs.VERSION_BUILD }}
@@ -37,11 +37,13 @@ jobs:
3737 target : aarch64-apple-darwin
3838 artifact : ' libcorerust.dylib'
3939 zipname : ' arch-darwin-aarch64'
40- - os : ubuntu-latest
40+ # We use ubuntu-22.04 rather than ubuntu-latest to get a fixed GLIBC dependency
41+ # We can update this when we update our minimum supported linux version
42+ - os : ubuntu-22.04 # Fix GLIBC
4143 target : x86_64-unknown-linux-gnu
4244 artifact : ' libcorerust.so'
4345 zipname : ' arch-linux-x86_64'
44- - os : ubuntu-latest
46+ - os : ubuntu-22.04 # Fix GLIBC
4547 target : aarch64-unknown-linux-gnu
4648 zipname : ' arch-linux-aarch64'
4749 artifact : ' libcorerust.so'
8688 run : |
8789 rustup toolchain install stable-gnu
8890 rustup set default-host ${{ matrix.target }}
89- - if : matrix.os == 'ubuntu-latest'
91+ - if : matrix.os == 'ubuntu-22.04' # Fix GLIBC
9092 name : Build dependencies ubuntu
9193 run : |
9294 sudo apt-get update -y && sudo apt install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
@@ -112,7 +114,7 @@ jobs:
112114 - setup_version_properties
113115 permissions :
114116 contents : write
115- runs-on : ' ubuntu-latest '
117+ runs-on : ' ubuntu-22.04 ' # Fix GLIBC
116118 continue-on-error : true
117119 strategy :
118120 matrix :
@@ -160,7 +162,7 @@ jobs:
160162 name : Build and Upload Application Binary
161163 permissions :
162164 contents : write
163- runs-on : ubuntu-22.04
165+ runs-on : ubuntu-22.04 # Fix GLIBC
164166 needs :
165167 - setup_version_properties
166168 environment : publish-artifacts
@@ -203,7 +205,7 @@ jobs:
203205 snyk-sbom :
204206 if : github.event_name == 'release'
205207 name : SBOM
206- runs-on : ubuntu-latest
208+ runs-on : ubuntu-22.04 # Fix GLIBC
207209 permissions : write-all
208210 steps :
209211 - uses : RDXWorks-actions/checkout@main
0 commit comments