From 84ecf17219f8aa1922e15c46a7eae3a36f7d7db3 Mon Sep 17 00:00:00 2001 From: Angry Coding Date: Fri, 17 Jan 2025 19:57:48 +0000 Subject: [PATCH] chore: removed workflow --- .../stylus/.github/workflows/check-wasm.yml | 36 ----- .../sdk/stylus/.github/workflows/check.yml | 132 ------------------ .../stylus/.github/workflows/e2e-tests.yml | 52 ------- .../stylus/.github/workflows/foundry-test.yml | 47 ------- .../stylus/.github/workflows/gas-bench.yml | 45 ------ .../sdk/stylus/.github/workflows/nostd.yml | 43 ------ 6 files changed, 355 deletions(-) delete mode 100644 target_chains/ethereum/sdk/stylus/.github/workflows/check-wasm.yml delete mode 100644 target_chains/ethereum/sdk/stylus/.github/workflows/check.yml delete mode 100644 target_chains/ethereum/sdk/stylus/.github/workflows/e2e-tests.yml delete mode 100644 target_chains/ethereum/sdk/stylus/.github/workflows/foundry-test.yml delete mode 100644 target_chains/ethereum/sdk/stylus/.github/workflows/gas-bench.yml delete mode 100644 target_chains/ethereum/sdk/stylus/.github/workflows/nostd.yml diff --git a/target_chains/ethereum/sdk/stylus/.github/workflows/check-wasm.yml b/target_chains/ethereum/sdk/stylus/.github/workflows/check-wasm.yml deleted file mode 100644 index f27d7b991b..0000000000 --- a/target_chains/ethereum/sdk/stylus/.github/workflows/check-wasm.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: check-wasm -# This workflow checks that the compiled wasm binary of every example contract -# can be deployed to Arbitrum Stylus. -on: - pull_request: - paths: - - target_chains/ethereum/sdk/stylus/** ** - push: - branches: - - main - paths: - - target_chains/ethereum/sdk/stylus/** -permissions: - contents: read -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true -env: - CARGO_TERM_COLOR: always -jobs: - check-wasm: - name: Check WASM binary - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - rustflags: "" - - - name: Install cargo-stylus - run: cargo install cargo-stylus@0.5.3 - - - name: Run wasm check - run: ./scripts/check-wasm.sh diff --git a/target_chains/ethereum/sdk/stylus/.github/workflows/check.yml b/target_chains/ethereum/sdk/stylus/.github/workflows/check.yml deleted file mode 100644 index dbe4fdd6e9..0000000000 --- a/target_chains/ethereum/sdk/stylus/.github/workflows/check.yml +++ /dev/null @@ -1,132 +0,0 @@ -name: check -# This workflow runs whenever a PR is opened or updated, or a commit is pushed -# to main. It runs several checks: -# - fmt: checks that the code is formatted according to `rustfmt`. -# - clippy: checks that the code does not contain any `clippy` warnings. -# - doc: checks that the code can be documented without errors. -# - hack: check combinations of feature flags. -# - typos: checks for typos across the repo. -permissions: - contents: read -# This configuration allows maintainers of this repo to create a branch and -# pull request based on the new branch. Restricting the push trigger to the -# main branch ensures that the PR only gets built once. -on: - pull_request: - paths: - - target_chains/ethereum/sdk/stylus/** ** - push: - branches: - - main - paths: - - target_chains/ethereum/sdk/stylus/** -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true -env: - CARGO_TERM_COLOR: always -jobs: - fmt: - runs-on: ubuntu-latest - name: nightly / fmt - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - - name: Install rust - # We run in nightly to make use of some features only available there. - # Check out `rustfmt.toml` to see which ones. - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: nightly - components: rustfmt - rustflags: "" - - - name: Check formatting - run: cargo fmt --all --check - clippy: - runs-on: ubuntu-latest - name: ${{ matrix.toolchain }} / clippy - permissions: - contents: read - checks: write - strategy: - fail-fast: false - matrix: - # Get early warning of new lints which are regularly introduced in beta - # channels. - toolchain: [ stable, beta ] - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - - name: Install rust ${{ matrix.toolchain }} - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: ${{ matrix.toolchain }} - components: clippy - rustflags: "" - - - name: Cargo clippy - uses: giraffate/clippy-action@v1 - with: - reporter: 'github-pr-check' - github_token: ${{ secrets.GITHUB_TOKEN }} - doc: - # Run docs generation on nightly rather than stable. This enables features - # like https://doc.rust-lang.org/beta/unstable-book/language-features/doc-cfg.html - # which allows an API be documented as only available in some specific - # platforms. - runs-on: ubuntu-latest - name: nightly / doc - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - - name: Install rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: nightly - rustflags: "" - - - name: Cargo doc - run: cargo doc --no-deps --all-features - env: - RUSTDOCFLAGS: --cfg docsrs - hack: - # `cargo-hack` checks combinations of feature flags to ensure that features - # are all additive which is required for feature unification. - runs-on: ubuntu-latest - name: ubuntu / stable / features - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - - name: Install rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: stable - target: wasm32-unknown-unknown - rustflags: "" - - - name: Cargo install cargo-hack - uses: taiki-e/install-action@cargo-hack - # Intentionally no target specifier; see https://github.com/jonhoo/rust-ci-conf/pull/4 - # `--feature-powerset` runs for every combination of features. Note that - # target in this context means one of `--lib`, `--bin`, etc, and not the - # target triple. - - name: Cargo hack - run: cargo hack check --feature-powerset --depth 2 --release --target wasm32-unknown-unknown --skip std --workspace --exclude e2e --exclude basic-example-script --exclude benches - typos: - runs-on: ubuntu-latest - name: ubuntu / stable / typos - steps: - - name: Checkout Actions Repository - uses: actions/checkout@v4 - - - name: Check spelling of files in the workspace - uses: crate-ci/typos@v1.27.3 diff --git a/target_chains/ethereum/sdk/stylus/.github/workflows/e2e-tests.yml b/target_chains/ethereum/sdk/stylus/.github/workflows/e2e-tests.yml deleted file mode 100644 index d7ba3b1a6f..0000000000 --- a/target_chains/ethereum/sdk/stylus/.github/workflows/e2e-tests.yml +++ /dev/null @@ -1,52 +0,0 @@ -# This workflow runs our end-to-end tests suite. -# -# It roughly follows these steps: -# - Install rust -# - Install `cargo-stylus` -# - Install `solc` -# - Spin up `nitro-testnode` -# -# Contract deployments and account funding happen on a per-test basis. -name: e2e -permissions: - contents: read -on: - pull_request: - paths: - - target_chains/ethereum/sdk/stylus/** ** - push: - branches: - - main - paths: - - target_chains/ethereum/sdk/stylus/** -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true -env: - CARGO_TERM_COLOR: always -jobs: - required: - name: tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - cache-key: "e2e-tests" - rustflags: "" - - - name: Install cargo-stylus - run: cargo install cargo-stylus@0.5.3 - - - name: Install solc - run: | - curl -LO https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux - sudo mv solc-static-linux /usr/bin/solc - sudo chmod a+x /usr/bin/solc - - - name: Setup nitro node - run: ./scripts/nitro-testnode.sh -d -i - - name: run integration tests - run: ./scripts/e2e-tests.sh diff --git a/target_chains/ethereum/sdk/stylus/.github/workflows/foundry-test.yml b/target_chains/ethereum/sdk/stylus/.github/workflows/foundry-test.yml deleted file mode 100644 index 22b79ce3e0..0000000000 --- a/target_chains/ethereum/sdk/stylus/.github/workflows/foundry-test.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: foundry-test - -on: - pull_request: - paths: - - target_chains/ethereum/sdk/stylus/** ** - push: - branches: - - main - paths: - - target_chains/ethereum/sdk/stylus/** - -env: - FOUNDRY_PROFILE: ci - -jobs: - check: - name: Foundry project - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: Install Foundry - uses: foundry-rs/foundry-toolchain@v1 - with: - version: nightly - - - name: Show Forge version - run: forge --version - - - name: Change directory to pyth-mock-solidity - run: cd pyth-mock-solidity - - - name: Run Forge fmt - run: forge fmt --check - id: fmt - - - name: Run Forge build - run: forge build --sizes - id: build - - - name: Run Forge tests - run: forge test -vvv - id: test diff --git a/target_chains/ethereum/sdk/stylus/.github/workflows/gas-bench.yml b/target_chains/ethereum/sdk/stylus/.github/workflows/gas-bench.yml deleted file mode 100644 index cdb768bcc6..0000000000 --- a/target_chains/ethereum/sdk/stylus/.github/workflows/gas-bench.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: gas-bench -# This workflow checks that the compiled wasm binary of every example contract -# can be deployed to Arbitrum Stylus. -permissions: - contents: read -on: - pull_request: - paths: - - target_chains/ethereum/sdk/stylus/** ** - push: - branches: - - main - paths: - - target_chains/ethereum/sdk/stylus/** -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true -env: - CARGO_TERM_COLOR: always -jobs: - required: - name: Gas usage report - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - cache-key: "gas-bench" - rustflags: "" - - - name: Install cargo-stylus - run: cargo install cargo-stylus@0.5.3 - - - name: Install solc - run: | - curl -LO https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux - sudo mv solc-static-linux /usr/bin/solc - sudo chmod a+x /usr/bin/solc - - - name: Setup nitro node - run: ./scripts/nitro-testnode.sh -d -i - - name: run benches - run: ./scripts/bench.sh diff --git a/target_chains/ethereum/sdk/stylus/.github/workflows/nostd.yml b/target_chains/ethereum/sdk/stylus/.github/workflows/nostd.yml deleted file mode 100644 index 39d30717e8..0000000000 --- a/target_chains/ethereum/sdk/stylus/.github/workflows/nostd.yml +++ /dev/null @@ -1,43 +0,0 @@ -# This workflow checks whether the library is able to run without the std -# library. See `check.yml` for information about how the concurrency -# cancellation and workflow triggering works. -name: no-std -permissions: - contents: read -on: - pull_request: - paths: - - target_chains/ethereum/sdk/stylus/** ** - push: - branches: - - main - paths: - - target_chains/ethereum/sdk/stylus/** -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} - cancel-in-progress: true -env: - CARGO_TERM_COLOR: always -jobs: - nostd: - runs-on: ubuntu-latest - name: ${{ matrix.target }} - strategy: - matrix: - target: [ wasm32-unknown-unknown ] - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - - name: Install rust - uses: actions-rust-lang/setup-rust-toolchain@v1 - with: - toolchain: stable - rustflags: "" - - - name: Add rust targets ${{ matrix.target }} - run: rustup target add ${{ matrix.target }} - - - name: Cargo check - run: cargo check --release --target ${{ matrix.target }} --no-default-features