-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chop steps into different jobs * fix https://github.com/pendulum-chain/spacewalk/actions/runs/10897911816 * fix https://github.com/pendulum-chain/spacewalk/actions/runs/10897974797/job/30240327947?pr=552 * add other installations * add other installations * require secrets and specify shell * add secrets * remove secret from the top * passing parameters to actions * add shell * add shell * add protoc for the tests and clippy * add back the checkout for run tests job * remove unused dependencies * revert the actions * cargo fmt, fix clippy, and teat * use nightly for running tests * let's skip the build first, since we know it'll pass * let's skip the build first, * use original cargo toml * use the `cmd-all` for performing the tests * skip running tests for rpc libraries; they don't have test cases * break down the tests even more: actions/runner-images#10401 * rename test names in the work flow * fix clippy * fix error: https://github.com/pendulum-chain/spacewalk/actions/runs/10943093849/job/30384114712 * re-enable build check * testing clients need nightly version of rust * add the environments * clean up the scripts * run vault test in a different job * update version to node 20 * only `integration-test` * only `integration-test` * clean up vault and test * install protoc * use ubuntu 20.04 * tauri-apps/tauri#9005 * install necessary libs * install necessary libs * "uses" * remove codec error * install libpq-dev * switch to ubuntu-latest * last attempt * run test * run whole thing * run 4 tests in parallel * shorten CI * #552 (comment), #552 (comment) * fix cargo fmt issues
- Loading branch information
Showing
98 changed files
with
739 additions
and
809 deletions.
There are no files selected for viewing
This file contains 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,33 @@ | ||
name: 'Disk Space' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Freeing up more disk space | ||
run: | | ||
sudo swapoff -a | ||
sudo rm -f /mnt/swapfile | ||
free -h | ||
docker rmi $(docker image ls -aq) | ||
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android | ||
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf /usr/local/share/boost | ||
sudo rm -rf /opt/hostedtoolcache | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
sudo apt-get remove -y 'php.*' --fix-missing | ||
sudo apt-get remove -y '^mongodb-.*' --fix-missing | ||
sudo apt-get remove -y '^mysql-.*' --fix-missing | ||
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing | ||
sudo apt-get remove -y google-cloud-sdk --fix-missing | ||
sudo apt-get remove -y google-cloud-cli --fix-missing | ||
sudo apt-get autoremove -y | ||
sudo apt-get clean | ||
df -h | ||
shell: bash | ||
|
||
# Free GitHub Actions Environment Disk Space | ||
- name: Maximize Build Space | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
tool-cache: false | ||
large-packages: false |
This file contains 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,29 @@ | ||
name: 'Rust Nightly' | ||
|
||
inputs: | ||
version: | ||
description: 'Nightly Version' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Remove rust-toolchain.toml for nightly | ||
shell: bash | ||
# To make sure that the nightly version will be used all throughout | ||
run: | | ||
rm /home/runner/work/spacewalk/spacewalk/rust-toolchain.toml | ||
- name: Setup nightly Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
# uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
toolchain: ${{ inputs.version }} | ||
components: rustfmt, clippy | ||
target: wasm32-unknown-unknown | ||
override: true | ||
|
||
# - name: Setup nightly Rust as default | ||
# shell: bash | ||
# run: | | ||
# rustup default ${{ inputs.version }} |
This file contains 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,29 @@ | ||
name: 'Other Necessary Installations' | ||
|
||
inputs: | ||
token: | ||
description: 'A Github PAT' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install package | ||
shell: bash | ||
run: | | ||
sudo docker image prune --all --force | ||
echo 'APT::Get::Always-Include-Phased-Updates "false";' | sudo tee /etc/apt/apt.conf.d/99-phased-updates | ||
sudo apt-get update && sudo apt-get upgrade -y | ||
sudo apt-get install -y protobuf-compiler libprotobuf-dev | ||
# - name: Use Cache | ||
# uses: Swatinem/rust-cache@v2 | ||
# with: | ||
# cache-on-failure: true | ||
# key: "ubuntu-latest-cargo-${{ hashFiles('**/Cargo.lock') }}" | ||
# shared-key: "shared" | ||
|
||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v3 | ||
with: | ||
repo-token: ${{ inputs.token }} |
This file contains 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: 'Prerequisite Steps' | ||
description: 'Prerequite steps for every workflow: Free up some space and Install Necessary Packages' | ||
|
||
inputs: | ||
token: | ||
description: 'A Github PAT' | ||
required: true | ||
version: | ||
description: 'Nightly Version' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Free up disk space and Install Necessary Packages | ||
uses: ./.github/actions/prerequisite | ||
with: | ||
token: ${{ inputs.token }} | ||
|
||
- name: Install Rust Nightly | ||
uses: ./.github/actions/install-rust-nightly | ||
with: | ||
version: ${{ inputs.version }} |
This file contains 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,29 @@ | ||
name: 'Prerequisite Steps' | ||
description: 'Prerequite steps for every workflow: Free up some space and Install Necessary Packages' | ||
|
||
inputs: | ||
token: | ||
description: 'A Github PAT' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# Free GitHub Actions Environment Disk Space | ||
- name: Maximize Build Space | ||
uses: jlumbroso/free-disk-space@main | ||
with: | ||
tool-cache: false | ||
large-packages: false | ||
|
||
- name: Install Packages | ||
uses: ./.github/actions/installations | ||
with: | ||
token: ${{ inputs.token }} | ||
|
||
# - name: Use cargo.toml with polkadot-sdk fork | ||
# shell: bash | ||
# # To make sure that our polkadot-sdk fork will be used | ||
# run: | | ||
# rm /home/runner/work/spacewalk/spacewalk/Cargo.toml | ||
# mv /home/runner/work/spacewalk/spacewalk/Cargo_CI.toml /home/runner/work/spacewalk/spacewalk/Cargo.toml |
This file contains 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
Oops, something went wrong.