Skip to content

Commit 00f1d72

Browse files
authored
Merge pull request #7657 from diffblue/20230411-remove-ubuntu-1804
Remove Ubuntu-18.04 jobs since github deprecated them
2 parents 888a08a + 37b4bd7 commit 00f1d72

File tree

4 files changed

+1
-156
lines changed

4 files changed

+1
-156
lines changed

Diff for: .github/workflows/README.md

-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ do that for:
3838

3939
* a `docker` image
4040
* an `ubuntu-20.04` package
41-
* an `ubuntu-18.04` package
4241
* a `windows-msi` installer package
4342

4443
Last but not least, we are also performing a coverage statistics collection

Diff for: .github/workflows/pull-request-checks.yaml

-65
Original file line numberDiff line numberDiff line change
@@ -780,71 +780,6 @@ jobs:
780780
echo "msi_installer=build/$msi_name" >> $env:GITHUB_OUTPUT
781781
echo "msi_name=$msi_name" >> $env:GITHUB_OUTPUT
782782
783-
# This job takes approximately 25 to 43 minutes
784-
ubuntu-18_04-package:
785-
runs-on: ubuntu-18.04
786-
env:
787-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
788-
steps:
789-
- uses: actions/checkout@v3
790-
with:
791-
submodules: recursive
792-
- name: Fetch dependencies
793-
run: |
794-
sudo apt-get update
795-
sudo apt-get install --no-install-recommends -y g++ gdb flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
796-
# remove libgcc-s1, which isn't normally available in Ubuntu 18.04
797-
target=$(dpkg-query -W --showformat='${Version}\n' gcc-8-base | head -n 1)
798-
# libgcc1 uses an epoch, thus the extra 1:
799-
sudo apt-get install -y --allow-downgrades --reinstall gcc g++ libgcc-s1- libstdc++6=$target liblsan0=$target libtsan0=$target libcc1-0=$target libgcc1=1:$target gdb=8.1.1-0ubuntu1
800-
- name: Download z3 4.11.0 from the python wheel package, extract it and make sure it can be deployed
801-
run: |
802-
sudo apt-get install --no-install-recommends -y unzip
803-
# download the z3 python wheel package
804-
wget -O z3.4.11.0.whl https://github.com/Z3Prover/z3/releases/download/z3-4.11.0/z3_solver-4.11.0.0-py2.py3-none-manylinux1_x86_64.whl
805-
# unpack the bundle using python
806-
unzip z3.4.11.0.whl
807-
# make z3 executable and move it in /usr/local/bin
808-
chmod u+x ./z3_solver-4.11.0.0.data/data/bin/z3
809-
mv ./z3_solver-4.11.0.0.data/data/bin/z3 /usr/local/bin/
810-
z3 --version
811-
- name: Download cvc-5 from the releases page and make sure it can be deployed
812-
run: |
813-
wget -O cvc5 https://github.com/cvc5/cvc5/releases/download/cvc5-${{env.cvc5-version}}/cvc5-Linux
814-
chmod u+x cvc5
815-
mv cvc5 /usr/local/bin
816-
cvc5 --version
817-
- name: Prepare ccache
818-
uses: actions/cache@v3
819-
with:
820-
path: .ccache
821-
key: ${{ runner.os }}-18.04-Release-${{ github.ref }}-${{ github.sha }}-PR
822-
restore-keys: |
823-
${{ runner.os }}-18.04-Release-${{ github.ref }}
824-
${{ runner.os }}-18.04-Release
825-
- name: ccache environment
826-
run: |
827-
echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
828-
echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
829-
- name: Zero ccache stats and limit in size
830-
run: ccache -z --max-size=500M
831-
- name: Configure CMake
832-
run: cmake -S . -Bbuild -G Ninja -DCMAKE_BUILD_TYPE=Release -Dsat_impl=cadical
833-
- name: Build using Ninja
834-
run: ninja -C build -j2
835-
- name: Print ccache stats
836-
run: ccache -s
837-
- name: Run CTest
838-
run: cd build; ctest . -V -L CORE -C Release -j2
839-
- name: Create packages
840-
id: create_packages
841-
run: |
842-
cd build
843-
ninja package
844-
deb_package_name="$(ls *.deb)"
845-
echo "deb_package=./build/$deb_package_name" >> $GITHUB_OUTPUT
846-
echo "deb_package_name=ubuntu-18.04-$deb_package_name" >> $GITHUB_OUTPUT
847-
848783
# This job takes approximately 2 to 3 minutes
849784
check-string-table:
850785
runs-on: ubuntu-20.04

Diff for: .github/workflows/regular-release.yaml

+1-3
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,9 @@ jobs:
5656
5757
## Ubuntu
5858
59-
On Ubuntu, install CBMC by downloading the *.deb package below for your version of Ubuntu and install with one of
59+
On Ubuntu, install CBMC by downloading the *.deb package below for your version of Ubuntu and install with
6060
6161
```sh
62-
# Ubuntu 18:
63-
$ dpkg -i ubuntu-18.04-cbmc-${{ env.CBMC_VERSION }}-Linux.deb
6462
# Ubuntu 20:
6563
$ dpkg -i ubuntu-20.04-cbmc-${{ env.CBMC_VERSION }}-Linux.deb
6664
```

Diff for: .github/workflows/release-packages.yaml

-87
Original file line numberDiff line numberDiff line change
@@ -149,93 +149,6 @@ jobs:
149149
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
150150
SLACK_MESSAGE: "${{ job.status == 'success' && 'Ubuntu 20.04 package built and uploaded successfully' || 'Ubuntu 20.04 package build failed' }}"
151151

152-
ubuntu-18_04-package:
153-
runs-on: ubuntu-18.04
154-
env:
155-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
156-
steps:
157-
- uses: actions/checkout@v3
158-
with:
159-
submodules: recursive
160-
- name: Fetch dependencies
161-
run: |
162-
sudo apt-get update
163-
sudo apt-get install --no-install-recommends -y g++ gdb flex bison cmake ninja-build maven jq libxml2-utils dpkg-dev ccache
164-
# remove libgcc-s1, which isn't normally available in Ubuntu 18.04
165-
target=$(dpkg-query -W --showformat='${Version}\n' gcc-8-base | head -n 1)
166-
# libgcc1 uses an epoch, thus the extra 1:
167-
sudo apt-get install -y --allow-downgrades --reinstall gcc g++ libgcc-s1- libstdc++6=$target liblsan0=$target libtsan0=$target libcc1-0=$target libgcc1=1:$target gdb=8.1.1-0ubuntu1
168-
- name: Download z3 4.11.0 from the python wheel package, extract it and make sure it can be deployed
169-
run: |
170-
sudo apt-get install --no-install-recommends -y unzip
171-
# download the z3 python wheel package
172-
wget -O z3.4.11.0.whl https://github.com/Z3Prover/z3/releases/download/z3-4.11.0/z3_solver-4.11.0.0-py2.py3-none-manylinux1_x86_64.whl
173-
# unpack the bundle using python
174-
unzip z3.4.11.0.whl
175-
# make z3 executable and move it in /usr/local/bin
176-
chmod u+x ./z3_solver-4.11.0.0.data/data/bin/z3
177-
mv ./z3_solver-4.11.0.0.data/data/bin/z3 /usr/local/bin/
178-
z3 --version
179-
- name: Download cvc-5 from the releases page and make sure it can be deployed
180-
run: |
181-
wget -O cvc5 https://github.com/cvc5/cvc5/releases/download/cvc5-${{env.cvc5-version}}/cvc5-Linux
182-
chmod u+x cvc5
183-
mv cvc5 /usr/local/bin
184-
cvc5 --version
185-
- name: Prepare ccache
186-
uses: actions/cache@v3
187-
with:
188-
path: .ccache
189-
key: ${{ runner.os }}-18.04-Release-${{ github.ref }}-${{ github.sha }}-RELEASEPKG
190-
restore-keys: |
191-
${{ runner.os }}-18.04-Release-${{ github.ref }}
192-
${{ runner.os }}-18.04-Release
193-
- name: ccache environment
194-
run: |
195-
echo "CCACHE_BASEDIR=$PWD" >> $GITHUB_ENV
196-
echo "CCACHE_DIR=$PWD/.ccache" >> $GITHUB_ENV
197-
- name: Configure CMake
198-
run: |
199-
mkdir build
200-
cd build
201-
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -Dsat_impl="minisat2;cadical"
202-
- name: Zero ccache stats and limit in size
203-
run: ccache -z --max-size=500M
204-
- name: Build using Ninja
205-
run: ninja -C build -j2
206-
- name: Print ccache stats
207-
run: ccache -s
208-
- name: Run CTest
209-
run: cd build; ctest . -V -L CORE -C Release -j2
210-
- name: Create packages
211-
id: create_packages
212-
run: |
213-
cd build
214-
ninja package
215-
deb_package_name="$(ls *.deb)"
216-
echo "deb_package=./build/$deb_package_name" >> $GITHUB_OUTPUT
217-
echo "deb_package_name=ubuntu-18.04-$deb_package_name" >> $GITHUB_OUTPUT
218-
- name: Get release info
219-
id: get_release_info
220-
uses: bruceadams/[email protected]
221-
- name: Upload binary packages
222-
uses: actions/upload-release-asset@v1
223-
with:
224-
upload_url: ${{ steps.get_release_info.outputs.upload_url }}
225-
asset_path: ${{ steps.create_packages.outputs.deb_package }}
226-
asset_name: ${{ steps.create_packages.outputs.deb_package_name }}
227-
asset_content_type: application/x-deb
228-
- name: Slack notification of CI status
229-
uses: rtCamp/action-slack-notify@v2
230-
if: success() || failure()
231-
env:
232-
SLACK_CHANNEL: team_open_source
233-
SLACK_COLOR: ${{ job.status }}
234-
SLACK_USERNAME: Github Actions CI bot
235-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
236-
SLACK_MESSAGE: "${{ job.status == 'success' && 'Ubuntu 18.04 package built and uploaded successfully' || 'Ubuntu 18.04 package build failed' }}"
237-
238-
239152
homebrew-pr:
240153
runs-on: macos-11
241154
steps:

0 commit comments

Comments
 (0)