Skip to content

Commit 0ac4085

Browse files
authored
Merge pull request #5748 from NlightNFotis/reverse_homebrew_removal
[CI] Cleanup dockerhub release action.
2 parents 5b1f614 + f45b62c commit 0ac4085

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

.github/workflows/regular-release.yaml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,20 @@ name: Create Release
88
jobs:
99
get-version-information:
1010
name: Get Version Information
11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212
outputs:
13-
version: ${{ steps.split.outputs._2 }}
13+
version: ${{ steps.split-version.outputs._1 }}
1414
steps:
1515
- uses: jungwinter/split@v1
1616
id: split
1717
with:
1818
msg: ${{ github.ref }}
1919
seperator: '/'
20+
- uses: jungwinter/split@v1
21+
id: split-version
22+
with:
23+
msg: ${{ steps.split.outputs._2 }}
24+
seperator: '-'
2025
perform-release:
2126
name: Perform Release
2227
runs-on: ubuntu-20.04
@@ -55,24 +60,39 @@ jobs:
5560
5661
```sh
5762
# Ubuntu 18:
58-
$ dpkg -i ubuntu-18.04-${{ env.CBMC_TAG }}-Linux.deb
63+
$ dpkg -i ubuntu-18.04-cbmc-${{ env.CBMC_TAG }}-Linux.deb
5964
# Ubuntu 20:
60-
$ dpkg -i ubuntu-20.04-${{ env.CBMC_TAG }}-Linux.deb
65+
$ dpkg -i ubuntu-20.04-cbmc-${{ env.CBMC_TAG }}-Linux.deb
6166
```
6267
6368
## Windows
6469
65-
On Windows, install CBMC by downloading the `${{ env.CBMC_TAG }}-win64.msi` installer below, double-clicking on the installer to run it, and adding the folder `C:\Program Files\cbmc\bin` in your `PATH` environment variable.
70+
On Windows, install CBMC by downloading the `cbmc-${{ env.CBMC_TAG }}-win64.msi` installer below, double-clicking on the installer to run it, and adding the folder `C:\Program Files\cbmc\bin` in your `PATH` environment variable.
6671
6772
For installation from the windows command prompt, run:
6873
6974
```sh
70-
msiexec /i ${{ env.CBMC_TAG }}-win64.msi
75+
msiexec /i cbmc-${{ env.CBMC_TAG }}-win64.msi
7176
PATH="C:\Program Files\cbmc\bin";%PATH%
7277
```
7378
7479
Note that we depend on the Visual C++ redistributables. You likely already have these, if not please download and run vcredist.x64.exe from Microsoft to install them prior to running cbmc, or make sure you have Visual Studio 2019 installed.
7580
7681
You can download either [Visual Studio 2019 Community Edition](https://visualstudio.microsoft.com/vs/community/) or the [Visual C++ Redistributables](https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads) from Microsoft for free.
82+
83+
## Docker
84+
85+
To run the CProver suite of tools under a Docker container, make sure that
86+
[Docker](https://www.docker.com/) is already installed in your system and
87+
set up correctly, and then issue:
88+
89+
```sh
90+
$ docker run -it diffblue/cbmc:${{ env.CBMC-TAG }}
91+
#
92+
```
93+
94+
That will initialise an execution of the container based on the image pushed
95+
as part of this release. The CProver tools are present in the `$PATH` of the
96+
container.
7797
draft: false
7898
prerelease: false

.github/workflows/release-packages.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ jobs:
118118

119119

120120
homebrew-pr:
121-
if: ${{ false }} # disable for now
122121
runs-on: macos-10.15
123122
steps:
124123
- name: Get release tag name
@@ -227,3 +226,6 @@ jobs:
227226
run: |
228227
echo ${{ secrets.DOCKERHUB_ACCESS_DB_CI_CPROVER }} | docker login --username=dbcicprover --password-stdin
229228
docker image push "$IMAGE_TAG"
229+
# For security reasons remove stored login credentials from
230+
# configuration file they are stored at by docker login.
231+
docker logout

0 commit comments

Comments
 (0)