Skip to content

[CI] Cleanup dockerhub release action. #5748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions .github/workflows/regular-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@ name: Create Release
jobs:
get-version-information:
name: Get Version Information
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
outputs:
version: ${{ steps.split.outputs._2 }}
version: ${{ steps.split-version.outputs._1 }}
steps:
- uses: jungwinter/split@v1
id: split
with:
msg: ${{ github.ref }}
seperator: '/'
- uses: jungwinter/split@v1
id: split-version
with:
msg: ${{ steps.split.outputs._2 }}
seperator: '-'
perform-release:
name: Perform Release
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -55,24 +60,39 @@ jobs:

```sh
# Ubuntu 18:
$ dpkg -i ubuntu-18.04-${{ env.CBMC_TAG }}-Linux.deb
$ dpkg -i ubuntu-18.04-cbmc-${{ env.CBMC_TAG }}-Linux.deb
# Ubuntu 20:
$ dpkg -i ubuntu-20.04-${{ env.CBMC_TAG }}-Linux.deb
$ dpkg -i ubuntu-20.04-cbmc-${{ env.CBMC_TAG }}-Linux.deb
```

## Windows

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.
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.

For installation from the windows command prompt, run:

```sh
msiexec /i ${{ env.CBMC_TAG }}-win64.msi
msiexec /i cbmc-${{ env.CBMC_TAG }}-win64.msi
PATH="C:\Program Files\cbmc\bin";%PATH%
```

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.

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.

## Docker

To run the CProver suite of tools under a Docker container, make sure that
[Docker](https://www.docker.com/) is already installed in your system and
set up correctly, and then issue:

```sh
$ docker run -it diffblue/cbmc:${{ env.CBMC-TAG }}
#
```

That will initialise an execution of the container based on the image pushed
as part of this release. The CProver tools are present in the `$PATH` of the
container.
draft: false
prerelease: false
4 changes: 3 additions & 1 deletion .github/workflows/release-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ jobs:


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