Skip to content

ci: remove toolchain adjustments #2484

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 61 commits into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
5e111a1
chore(scripts): remove toolchain adjustments
evilrobot-01 Apr 22, 2025
70ebe70
ci: remove toolchain adjustments
evilrobot-01 Apr 22, 2025
0face77
ci: add init composite action
evilrobot-01 Apr 22, 2025
db525c7
ci: update workflow to use init action
evilrobot-01 Apr 22, 2025
feb3148
ci: update to use container for step only
evilrobot-01 Apr 22, 2025
b686990
ci: update to use container for steps
evilrobot-01 Apr 22, 2025
7886ab3
ci: update image access
evilrobot-01 Apr 22, 2025
4a15434
ci: update entrypoint
evilrobot-01 Apr 22, 2025
676fd50
ci: update container args
evilrobot-01 Apr 22, 2025
abe28bf
ci: use container step for clippy job
evilrobot-01 Apr 22, 2025
0c62940
ci: restore checkout
evilrobot-01 Apr 22, 2025
8195ba7
ci: update image
evilrobot-01 Apr 22, 2025
c8bb462
ci: update clippy job syntax
evilrobot-01 Apr 22, 2025
fcfe454
ci: improve initialize step name
evilrobot-01 Apr 22, 2025
1dc5078
ci: attempt to resolve clippy env variable
evilrobot-01 Apr 22, 2025
f356d66
ci: merge clippy job via matrix
evilrobot-01 Apr 22, 2025
539c40f
ci: update clippy-examples job to use run-container-command action
evilrobot-01 Apr 22, 2025
222c178
ci: update check job to use run-container-command action
evilrobot-01 Apr 22, 2025
41c8d76
ci: update fmt job to use run-container-command action
evilrobot-01 Apr 22, 2025
7d77d6d
ci: set environment variable for check step
evilrobot-01 Apr 22, 2025
7961f2a
ci: update dylint jobs to use run-container-command action
evilrobot-01 Apr 22, 2025
50a2869
ci: update build jobs to use run-container-command action
evilrobot-01 Apr 22, 2025
7d5814b
ci: update needs for example docs after merging via matrix
evilrobot-01 Apr 22, 2025
8fc75f6
ci: remove test job partitioning due to switching to run-container-co…
evilrobot-01 Apr 22, 2025
213f7ca
ci: fix alignment
evilrobot-01 Apr 22, 2025
a676b65
ci: update test-docs job to use run-container-command action
evilrobot-01 Apr 22, 2025
f533b3a
ci: fix alignment
evilrobot-01 Apr 22, 2025
a1563ca
ci: update test-linting job to use run-container-command action
evilrobot-01 Apr 22, 2025
1ea8679
ci: update docs job to use run-container-command action
evilrobot-01 Apr 22, 2025
01e8586
ci: update example-test job to remove partition and use run-container…
evilrobot-01 Apr 22, 2025
1b5ad85
ci: update examples-test-mapping job to use run-container-command action
evilrobot-01 Apr 22, 2025
9ca3fee
ci: update examples-custom-test job to use run-container-command action
evilrobot-01 Apr 22, 2025
fc998f8
ci: update examples-contract-build-riscv job by removing partioning a…
evilrobot-01 Apr 22, 2025
7541466
ci: update examples-docs to use run-container-command action
evilrobot-01 Apr 22, 2025
8242980
ci: update fuzz test to use run-container-command action
evilrobot-01 Apr 22, 2025
4b903eb
ci: remove container requirement from submit-contract-sizes job
evilrobot-01 Apr 22, 2025
c09a7e7
ci: remove leftover partitioning option from examples-test job
evilrobot-01 Apr 22, 2025
5953b77
ci: fix syntax issue in build::RISCV job
evilrobot-01 Apr 22, 2025
85d86d4
ci: remove set_name job after image defined in composite action
evilrobot-01 Apr 22, 2025
4786acb
ci: remove cargo_incremental overrides
evilrobot-01 Apr 22, 2025
157e9d7
ci: improve init action
evilrobot-01 Apr 22, 2025
d9d5773
ci: improve run-container-command action
evilrobot-01 Apr 22, 2025
39317b2
ci: remove rust info after moved to reusable action
evilrobot-01 Apr 22, 2025
620ed09
ci: attempt inputs image workaround
evilrobot-01 Apr 22, 2025
fd909ea
ci: accept defeat
evilrobot-01 Apr 22, 2025
59915b4
ci: add additional cache key for matrix usage
evilrobot-01 Apr 22, 2025
2f59f21
ci: output image environment info as first step
evilrobot-01 Apr 22, 2025
91ce5b5
ci: use relative path to enable proper caching between runner (host) …
evilrobot-01 Apr 22, 2025
7c34718
ci: adapt cache paths based on host/runner vs container
evilrobot-01 Apr 22, 2025
a7850d0
ci: use stable image
evilrobot-01 Apr 23, 2025
7ecf42d
ci: update initialize runner action
evilrobot-01 Apr 23, 2025
a84c626
ci: update run container command action
evilrobot-01 Apr 23, 2025
8185627
ci: update image used by run-container-command action
evilrobot-01 Apr 24, 2025
d8da28e
ci: attempt process-contract-sizes job fix
evilrobot-01 Apr 24, 2025
18c0972
docs: update changelog
evilrobot-01 Apr 24, 2025
24bb306
ci: attempt process-contract-sizes job fix
evilrobot-01 Apr 24, 2025
44b085c
ci: use github.run_id instead of branch name
evilrobot-01 Apr 24, 2025
616057d
ci: extract cargo contract version from environment for use in submit…
evilrobot-01 Apr 24, 2025
9334b6c
Merge branch 'master' into frank/disk-usage
evilrobot-01 Apr 24, 2025
b4db2fc
ci: adjust syntax for outputting cargo-contract version
evilrobot-01 Apr 24, 2025
c742044
ci: remove leftover environment variable definition
evilrobot-01 Apr 24, 2025
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
44 changes: 44 additions & 0 deletions .github/init/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Initialize Runner
description: |
This action initializes a runner/worker for use in other actions by maximizing build space and initializing caching
for Rust/Cargo projects.

inputs:
maximize-space:
description: Whether to maximise build space by removing unnecessary software by default. Defaults to true.
default: 'true'
cache:
description: Whether to cache Rust/cargo projects.
cache-all-crates:
description: Whether all crates should be cached, or only dependent crates. Defaults to true.
default: 'true'
cache-directories:
description: Additional non-workspace directories to be cached, separated by newlines.
cache-on-failure:
description: Cache even if the build fails. Defaults to false.
default: 'false'
cache-key:
description: An additional optional key to be added. Useful for jobs utilizing a matrix.

runs:
using: composite

steps:
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v5
if: ${{ inputs.maximize-space == 'true' }}
with:
remove-android: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
remove-dotnet: 'true'
remove-haskell: 'true'

- name: Cache Rust/Cargo projects and dependencies
uses: Swatinem/rust-cache@v2
if: ${{ inputs.cache == 'true' }}
with:
cache-all-crates: ${{ inputs.cache-all-crates }}
cache-directories: ${{ inputs.cache-directories }}
cache-on-failure: ${{ inputs.cache-on-failure }}
key: ${{ inputs.cache-key }}
23 changes: 23 additions & 0 deletions .github/run-container-command/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Run Container Command
description: |
This action runs a specified command within a container using the `useink/ci` image.

inputs:
command:
description: The command to be run within a container.
required: true

runs:
using: composite

steps:
- name: Run command in container
# Image can be edited at https://github.com/use-ink/docker-images
uses: docker://useink/ci
env:
# Update the target directory used within the container to one which is within the path mounted to the host
# runner workspace path. Required for effective caching.
CARGO_TARGET_DIR: "/github/workspace/${{ env.CARGO_TARGET_DIR }}"
with:
entrypoint: /bin/bash
args: -c "${{ inputs.command }}"
Loading
Loading