-
Notifications
You must be signed in to change notification settings - Fork 466
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
Changes from 52 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
5e111a1
chore(scripts): remove toolchain adjustments
70ebe70
ci: remove toolchain adjustments
0face77
ci: add init composite action
db525c7
ci: update workflow to use init action
feb3148
ci: update to use container for step only
b686990
ci: update to use container for steps
7886ab3
ci: update image access
4a15434
ci: update entrypoint
676fd50
ci: update container args
abe28bf
ci: use container step for clippy job
0c62940
ci: restore checkout
8195ba7
ci: update image
c8bb462
ci: update clippy job syntax
fcfe454
ci: improve initialize step name
1dc5078
ci: attempt to resolve clippy env variable
f356d66
ci: merge clippy job via matrix
539c40f
ci: update clippy-examples job to use run-container-command action
222c178
ci: update check job to use run-container-command action
41c8d76
ci: update fmt job to use run-container-command action
7d77d6d
ci: set environment variable for check step
7961f2a
ci: update dylint jobs to use run-container-command action
50a2869
ci: update build jobs to use run-container-command action
7d5814b
ci: update needs for example docs after merging via matrix
8fc75f6
ci: remove test job partitioning due to switching to run-container-co…
213f7ca
ci: fix alignment
a676b65
ci: update test-docs job to use run-container-command action
f533b3a
ci: fix alignment
a1563ca
ci: update test-linting job to use run-container-command action
1ea8679
ci: update docs job to use run-container-command action
01e8586
ci: update example-test job to remove partition and use run-container…
1b5ad85
ci: update examples-test-mapping job to use run-container-command action
9ca3fee
ci: update examples-custom-test job to use run-container-command action
fc998f8
ci: update examples-contract-build-riscv job by removing partioning a…
7541466
ci: update examples-docs to use run-container-command action
8242980
ci: update fuzz test to use run-container-command action
4b903eb
ci: remove container requirement from submit-contract-sizes job
c09a7e7
ci: remove leftover partitioning option from examples-test job
5953b77
ci: fix syntax issue in build::RISCV job
85d86d4
ci: remove set_name job after image defined in composite action
4786acb
ci: remove cargo_incremental overrides
157e9d7
ci: improve init action
d9d5773
ci: improve run-container-command action
39317b2
ci: remove rust info after moved to reusable action
620ed09
ci: attempt inputs image workaround
fd909ea
ci: accept defeat
59915b4
ci: add additional cache key for matrix usage
2f59f21
ci: output image environment info as first step
91ce5b5
ci: use relative path to enable proper caching between runner (host) …
7c34718
ci: adapt cache paths based on host/runner vs container
a7850d0
ci: use stable image
7ecf42d
ci: update initialize runner action
a84c626
ci: update run container command action
8185627
ci: update image used by run-container-command action
d8da28e
ci: attempt process-contract-sizes job fix
18c0972
docs: update changelog
24bb306
ci: attempt process-contract-sizes job fix
44b085c
ci: use github.run_id instead of branch name
616057d
ci: extract cargo contract version from environment for use in submit…
9334b6c
Merge branch 'master' into frank/disk-usage
b4db2fc
ci: adjust syntax for outputting cargo-contract version
c742044
ci: remove leftover environment variable definition
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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://evilrobot/useink:pr-4-stable | ||
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 }}" |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.