Skip to content

Commit 7ff089d

Browse files
authored
[ci-unified] Update RESOLC_VERSION to v0.5.0 (#33)
* [ci-unified] Update RESOLC_VERSION to v0.5.0 cc paritytech/devops#4508 * Specify version for cargo-deny installation Updated cargo-deny installation to a specific version. * Add --locked flag to cargo-deny installation * Specify version for cargo-edit installation * Specify versions for cargo-dylint and dylint-link * Change CI runner from ubuntu-latest to parity-large-new * Install buildah in GitHub Actions workflow Add step to install buildah before building the image. * Update action.yml * Install both buildah and podman in action.yml * Add podman login step to build-push-image action * Update action.yml * Update RESOLC_VERSION to v0.5.0
1 parent bb25309 commit 7ff089d

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

.github/actions/build-push-image/action.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ runs:
3535
run: |
3636
echo "BUILD_DATE='$(date +%Y%m%d)'" >> $GITHUB_OUTPUT
3737
38+
- name: Install buildah
39+
shell: bash
40+
run: |
41+
sudo apt-get -y update
42+
sudo apt-get -y install buildah podman
43+
44+
- name: Log in
45+
uses: redhat-actions/podman-login@v1
46+
with:
47+
username: ${{ inputs.registry-user }}
48+
password: ${{ inputs.registry-password }}
49+
registry: "docker.io"
50+
auth_file_path: /root/.docker/config.json
51+
3852
- name: buildah build
3953
id: build-image
4054
uses: redhat-actions/buildah-build@v2
@@ -53,13 +67,6 @@ runs:
5367
--format=docker
5468
${{ inputs.build-opts }}
5569
56-
- name: Log in
57-
uses: redhat-actions/podman-login@v1
58-
with:
59-
username: ${{ inputs.registry-user }}
60-
password: ${{ inputs.registry-password }}
61-
registry: "docker.io"
62-
6370
- name: push
6471
id: push-image
6572
if: ${{ inputs.push }}

.github/workflows/ci-unified.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ env:
2323
CODECOV_CLI_VERSION: "v0.6.0"
2424
DISTRO_CODENAME: "bullseye"
2525
SOLC_VERSION: "v0.8.30"
26-
RESOLC_VERSION: "v0.3.0"
26+
RESOLC_VERSION: "v0.5.0"
2727

2828
jobs:
2929
Build:
30-
runs-on: ubuntu-latest
30+
runs-on: parity-large-new
3131
environment: ${{ github.event_name == 'workflow_dispatch' && 'main' || null }}
3232
steps:
3333
- uses: actions/checkout@v4

ci-unified/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ RUN apt-get install -y --no-install-recommends g++
116116
RUN rustup target add x86_64-unknown-linux-musl
117117

118118
# generic ci | install common cargo tools
119-
RUN cargo install cargo-web wasm-pack cargo-deny cargo-hack \
119+
RUN cargo install cargo-deny --version 0.18.4 --locked
120+
121+
RUN cargo install cargo-web wasm-pack cargo-hack \
120122
mdbook mdbook-mermaid mdbook-linkcheck mdbook-admonish mdbook-last-changed
121123

122124
RUN cargo install mdbook-graphviz --locked
@@ -139,7 +141,7 @@ RUN cargo install zepter --locked --version 1.78.2
139141
RUN cargo install wasm-gc
140142

141143
# generic ci | install cargo-edit. Manipilation of Cargo.tomls (like bumping versions) in CI
142-
RUN cargo install cargo-edit
144+
RUN cargo install cargo-edit --version 0.13.7 --locked
143145

144146
# generic ci | install cargo hfuzz and honggfuzz dependencies
145147
RUN apt-get -y update && \
@@ -167,7 +169,9 @@ RUN rustup component add rustfmt clippy rust-src \
167169

168170
# contracts ci
169171
# `cargo-dylint` and `dylint-link` are dependencies needed to run `cargo-contract`.
170-
RUN cargo install cargo-dylint dylint-link
172+
RUN cargo install cargo-dylint --version 4.1.0 --locked
173+
RUN cargo install dylint-link --version 4.1.0 --locked
174+
171175

172176
# contracts ci
173177
# Install the latest `cargo-contract`
@@ -300,7 +304,7 @@ COPY ci-unified/download-bin.sh download-bin.sh
300304
ARG SOLC_VERSION="v0.8.30"
301305
RUN bash download-bin.sh solc ${SOLC_VERSION}
302306

303-
ARG RESOLC_VERSION="v0.3.0"
307+
ARG RESOLC_VERSION="v0.5.0"
304308
RUN bash download-bin.sh resolc ${RESOLC_VERSION}
305309

306310
### codecov

0 commit comments

Comments
 (0)