From 9f913d0105b5e73f1702e2ef3d06c4ca16c40043 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 07:37:01 +0200 Subject: [PATCH 01/10] fix: trying scripts --- .github/workflows/ci.yml | 11 ++--------- ci_scripts/build-ubuntu.sh | 4 ++++ 2 files changed, 6 insertions(+), 9 deletions(-) create mode 100644 ci_scripts/build-ubuntu.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 752af4a..2738171 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,16 +30,9 @@ jobs: profile: minimal toolchain: nightly override: true - - name: install risc0 + - name: build ubuntu test if: success() || failure() - run: | - curl -L https://risczero.com/install | bash - - name: install risc0 step 2 - if: success() || failure() - run: | - source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc - - uses: Swatinem/rust-cache@v2 - - run: cargo build + run: ./ci_scripts/build-ubuntu.sh lint: strategy: diff --git a/ci_scripts/build-ubuntu.sh b/ci_scripts/build-ubuntu.sh new file mode 100644 index 0000000..21ab9c0 --- /dev/null +++ b/ci_scripts/build-ubuntu.sh @@ -0,0 +1,4 @@ +curl -L https://risczero.com/install | bash +source /home/runner/.bashrc +rzup install +cargo build \ No newline at end of file From 959000e4189749821eacd4d9b979d0f0940ecc60 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 07:39:22 +0200 Subject: [PATCH 02/10] fix: ci test 1 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2738171..a590ccf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,7 +32,7 @@ jobs: override: true - name: build ubuntu test if: success() || failure() - run: ./ci_scripts/build-ubuntu.sh + run: chmod 777 ./ci_scripts/build-ubuntu.sh && ./ci_scripts/build-ubuntu.sh lint: strategy: From 3991086c34f8cc3b8320b3bda02bd8c68cfc17ff Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 07:44:33 +0200 Subject: [PATCH 03/10] fix: ci test 2 --- ci_scripts/build-ubuntu.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci_scripts/build-ubuntu.sh b/ci_scripts/build-ubuntu.sh index 21ab9c0..bf71a72 100644 --- a/ci_scripts/build-ubuntu.sh +++ b/ci_scripts/build-ubuntu.sh @@ -1,4 +1,4 @@ +set -e curl -L https://risczero.com/install | bash -source /home/runner/.bashrc -rzup install +/home/runner/.risc0/bin/rzup install cargo build \ No newline at end of file From ecdb8c4c68811a99f0576ad1d4fd985bfcb59ed1 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 07:49:30 +0200 Subject: [PATCH 04/10] fix: ci test 3 --- .github/workflows/ci.yml | 155 ++++++++++++++++++++------------------- 1 file changed, 78 insertions(+), 77 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a590ccf..e1f4ef4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,8 @@ jobs: build: strategy: matrix: - platform: [ ubuntu-latest, macos-latest ] + # platform: [ ubuntu-latest, macos-latest ] + platform: [ ubuntu-latest ] runs-on: ${{ matrix.platform }} timeout-minutes: 60 @@ -30,84 +31,84 @@ jobs: profile: minimal toolchain: nightly override: true - - name: build ubuntu test + - name: build - ${{ matrix.platform }} test if: success() || failure() run: chmod 777 ./ci_scripts/build-ubuntu.sh && ./ci_scripts/build-ubuntu.sh - lint: - strategy: - matrix: - platform: [ ubuntu-latest ] - runs-on: ${{ matrix.platform }} - timeout-minutes: 60 + # lint: + # strategy: + # matrix: + # platform: [ ubuntu-latest ] + # runs-on: ${{ matrix.platform }} + # timeout-minutes: 60 - name: lint - ${{ matrix.crate }} - ${{ matrix.platform }} - steps: - - name: Checkout sources - uses: actions/checkout@v3 - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true - components: rustfmt, clippy - - uses: Swatinem/rust-cache@v2 - - name: cargo fmt - if: success() || failure() - run: cargo fmt -- --check - - name: cargo clippy - if: success() || failure() - run: | - cargo clippy --release -- -D warnings - - name: install risc0 - if: success() || failure() - run: | - curl -L https://risczero.com/install | bash - - name: install risc0 step 2 - if: success() || failure() - run: | - source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc - - name: install taplo - if: success() || failure() - run: | - cargo install taplo-cli --locked - - name: taplo fmt - if: success() || failure() - run: | - taplo fmt --check - test: - strategy: - matrix: - platform: [ ubuntu-latest ] - runs-on: ${{ matrix.platform }} - timeout-minutes: 60 + # name: lint - ${{ matrix.crate }} - ${{ matrix.platform }} + # steps: + # - name: Checkout sources + # uses: actions/checkout@v3 + # - name: Install stable toolchain + # uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: nightly + # override: true + # components: rustfmt, clippy + # - uses: Swatinem/rust-cache@v2 + # - name: cargo fmt + # if: success() || failure() + # run: cargo fmt -- --check + # - name: cargo clippy + # if: success() || failure() + # run: | + # cargo clippy --release -- -D warnings + # - name: install risc0 + # if: success() || failure() + # run: | + # curl -L https://risczero.com/install | bash + # - name: install risc0 step 2 + # if: success() || failure() + # run: | + # source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc + # - name: install taplo + # if: success() || failure() + # run: | + # cargo install taplo-cli --locked + # - name: taplo fmt + # if: success() || failure() + # run: | + # taplo fmt --check + # test: + # strategy: + # matrix: + # platform: [ ubuntu-latest ] + # runs-on: ${{ matrix.platform }} + # timeout-minutes: 60 - name: test - ${{ matrix.crate }} - ${{ matrix.platform }} - steps: - - name: Checkout sources - uses: actions/checkout@v3 - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true - - uses: Swatinem/rust-cache@v2 - - name: install risc0 - if: success() || failure() - run: | - curl -L https://risczero.com/install | bash - - name: install risc0 step 2 - if: success() || failure() - run: | - source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc - - name: test mempool - if: success() || failure() - run: cargo test -p mempool - - name: test storage - if: success() || failure() - run: cargo test -p storage - - name: test zkvm - if: success() || failure() - run: cargo test -p zkvm + # name: test - ${{ matrix.crate }} - ${{ matrix.platform }} + # steps: + # - name: Checkout sources + # uses: actions/checkout@v3 + # - name: Install stable toolchain + # uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: nightly + # override: true + # - uses: Swatinem/rust-cache@v2 + # - name: install risc0 + # if: success() || failure() + # run: | + # curl -L https://risczero.com/install | bash + # - name: install risc0 step 2 + # if: success() || failure() + # run: | + # source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc + # - name: test mempool + # if: success() || failure() + # run: cargo test -p mempool + # - name: test storage + # if: success() || failure() + # run: cargo test -p storage + # - name: test zkvm + # if: success() || failure() + # run: cargo test -p zkvm From f5f9e406eaeaa703af3179e9cac483033cd523f9 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 08:07:53 +0200 Subject: [PATCH 05/10] fix: ci test 4 --- .github/workflows/ci.yml | 30 ++++++++++++++++++++++-------- ci_scripts/build-macos.sh | 4 ++++ 2 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 ci_scripts/build-macos.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e1f4ef4..21a6889 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,15 +14,11 @@ on: name: General jobs: - build: - strategy: - matrix: - # platform: [ ubuntu-latest, macos-latest ] - platform: [ ubuntu-latest ] - runs-on: ${{ matrix.platform }} + build-ubuntu-latest: + runs-on: ubuntu-latest timeout-minutes: 60 - name: build - ${{ matrix.platform }} + name: build - ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install stable toolchain @@ -31,10 +27,28 @@ jobs: profile: minimal toolchain: nightly override: true - - name: build - ${{ matrix.platform }} test + - name: build - ubuntu-latest if: success() || failure() run: chmod 777 ./ci_scripts/build-ubuntu.sh && ./ci_scripts/build-ubuntu.sh + + build-macos-latest: + runs-on: macos-latest + timeout-minutes: 60 + + name: build - macos-latest + steps: + - uses: actions/checkout@v3 + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + - name: build - macos-latest + if: success() || failure() + run: chmod 777 ./ci_scripts/build-macos.sh && ./ci_scripts/build-macos.sh + # lint: # strategy: # matrix: diff --git a/ci_scripts/build-macos.sh b/ci_scripts/build-macos.sh new file mode 100644 index 0000000..506fec6 --- /dev/null +++ b/ci_scripts/build-macos.sh @@ -0,0 +1,4 @@ +set -e +curl -L https://risczero.com/install | bash +/Users/.risc0/bin/rzup install +cargo build \ No newline at end of file From 57045a68ac3a90fcff9933e9366dda3e6a8153b5 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 08:13:30 +0200 Subject: [PATCH 06/10] fix: ci test 5 --- .github/workflows/ci.yml | 63 ++++++++++++++------------------------- ci_scripts/build-macos.sh | 2 +- ci_scripts/lint-ubuntu.sh | 9 ++++++ 3 files changed, 32 insertions(+), 42 deletions(-) create mode 100644 ci_scripts/lint-ubuntu.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21a6889..715b985 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,48 +49,29 @@ jobs: if: success() || failure() run: chmod 777 ./ci_scripts/build-macos.sh && ./ci_scripts/build-macos.sh - # lint: - # strategy: - # matrix: - # platform: [ ubuntu-latest ] - # runs-on: ${{ matrix.platform }} - # timeout-minutes: 60 + lint: + strategy: + matrix: + platform: [ ubuntu-latest ] + runs-on: ${{ matrix.platform }} + timeout-minutes: 60 + + name: lint - ${{ matrix.crate }} - ${{ matrix.platform }} + steps: + - name: Checkout sources + uses: actions/checkout@v3 + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: rustfmt, clippy + - name: lint - ubuntu-latest + if: success() || failure() + run: chmod 777 ./ci_scripts/lint-ubuntu.sh && ./ci_scripts/lint-ubuntu.sh + - # name: lint - ${{ matrix.crate }} - ${{ matrix.platform }} - # steps: - # - name: Checkout sources - # uses: actions/checkout@v3 - # - name: Install stable toolchain - # uses: actions-rs/toolchain@v1 - # with: - # profile: minimal - # toolchain: nightly - # override: true - # components: rustfmt, clippy - # - uses: Swatinem/rust-cache@v2 - # - name: cargo fmt - # if: success() || failure() - # run: cargo fmt -- --check - # - name: cargo clippy - # if: success() || failure() - # run: | - # cargo clippy --release -- -D warnings - # - name: install risc0 - # if: success() || failure() - # run: | - # curl -L https://risczero.com/install | bash - # - name: install risc0 step 2 - # if: success() || failure() - # run: | - # source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc - # - name: install taplo - # if: success() || failure() - # run: | - # cargo install taplo-cli --locked - # - name: taplo fmt - # if: success() || failure() - # run: | - # taplo fmt --check # test: # strategy: # matrix: diff --git a/ci_scripts/build-macos.sh b/ci_scripts/build-macos.sh index 506fec6..e3332f6 100644 --- a/ci_scripts/build-macos.sh +++ b/ci_scripts/build-macos.sh @@ -1,4 +1,4 @@ set -e curl -L https://risczero.com/install | bash -/Users/.risc0/bin/rzup install +/Users/runner/.risc0/bin/rzup install cargo build \ No newline at end of file diff --git a/ci_scripts/lint-ubuntu.sh b/ci_scripts/lint-ubuntu.sh new file mode 100644 index 0000000..e139cdd --- /dev/null +++ b/ci_scripts/lint-ubuntu.sh @@ -0,0 +1,9 @@ +set -e + +curl -L https://risczero.com/install | bash +/home/runner/.risc0/bin/rzup install +cargo install taplo-cli --locked + +cargo fmt -- --check +cargo clippy --release -- -D warnings +taplo fmt --check \ No newline at end of file From 765ad6e60b5213e0c12e4c2e41315e7df37db926 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 10:37:49 +0200 Subject: [PATCH 07/10] fix: ci test 6 --- ci_scripts/lint-ubuntu.sh | 40 +++++++++++++++++++++++++++++++++++++++ zkvm/src/lib.rs | 4 ++-- 2 files changed, 42 insertions(+), 2 deletions(-) diff --git a/ci_scripts/lint-ubuntu.sh b/ci_scripts/lint-ubuntu.sh index e139cdd..9275065 100644 --- a/ci_scripts/lint-ubuntu.sh +++ b/ci_scripts/lint-ubuntu.sh @@ -5,5 +5,45 @@ curl -L https://risczero.com/install | bash cargo install taplo-cli --locked cargo fmt -- --check + +cd accounts cargo clippy --release -- -D warnings +cd .. + +cd consensus +cargo clippy --release -- -D warnings +cd .. + +cd mempool +cargo clippy --release -- -D warnings +cd .. + +cd networking +cargo clippy --release -- -D warnings +cd .. + +cd rpc_primitives +cargo clippy --release -- -D warnings +cd .. + +cd sequencer_core +cargo clippy --release -- -D warnings +cd .. + +cd sequencer_rpc +cargo clippy --release -- -D warnings +cd .. + +cd sequencer_runner +cargo clippy --release -- -D warnings +cd .. + +cd storage +cargo clippy --release -- -D warnings +cd .. + +cd utxo +cargo clippy --release -- -D warnings +cd .. + taplo fmt --check \ No newline at end of file diff --git a/zkvm/src/lib.rs b/zkvm/src/lib.rs index 3b2b4ba..14841d3 100644 --- a/zkvm/src/lib.rs +++ b/zkvm/src/lib.rs @@ -48,9 +48,9 @@ pub fn verify(receipt: Receipt, image_id: impl Into) { #[cfg(test)] mod tests { use super::*; + use test_methods::{BIG_CALCULATION_ELF, BIG_CALCULATION_ID}; use test_methods::{MULTIPLICATION_ELF, MULTIPLICATION_ID}; use test_methods::{SUMMATION_ELF, SUMMATION_ID}; - use test_methods::{BIG_CALCULATION_ELF, BIG_CALCULATION_ID}; #[test] fn prove_simple_sum() { @@ -140,5 +140,5 @@ mod tests { } res - } + } } From b249a50a342f3cb0fa088dcf34f34fad98cbb646 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 11:02:57 +0200 Subject: [PATCH 08/10] fix: ci test 7 --- .github/workflows/ci.yml | 53 ++++++++++++++------------------------- ci_scripts/lint-ubuntu.sh | 41 ------------------------------ ci_scripts/test-ubuntu.sh | 6 +++++ 3 files changed, 25 insertions(+), 75 deletions(-) create mode 100644 ci_scripts/test-ubuntu.sh diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 715b985..4f0d53e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,38 +72,23 @@ jobs: run: chmod 777 ./ci_scripts/lint-ubuntu.sh && ./ci_scripts/lint-ubuntu.sh - # test: - # strategy: - # matrix: - # platform: [ ubuntu-latest ] - # runs-on: ${{ matrix.platform }} - # timeout-minutes: 60 + test: + strategy: + matrix: + platform: [ ubuntu-latest ] + runs-on: ${{ matrix.platform }} + timeout-minutes: 60 - # name: test - ${{ matrix.crate }} - ${{ matrix.platform }} - # steps: - # - name: Checkout sources - # uses: actions/checkout@v3 - # - name: Install stable toolchain - # uses: actions-rs/toolchain@v1 - # with: - # profile: minimal - # toolchain: nightly - # override: true - # - uses: Swatinem/rust-cache@v2 - # - name: install risc0 - # if: success() || failure() - # run: | - # curl -L https://risczero.com/install | bash - # - name: install risc0 step 2 - # if: success() || failure() - # run: | - # source /home/runner/.bashrc && rzup install && source /home/runner/.bashrc - # - name: test mempool - # if: success() || failure() - # run: cargo test -p mempool - # - name: test storage - # if: success() || failure() - # run: cargo test -p storage - # - name: test zkvm - # if: success() || failure() - # run: cargo test -p zkvm + name: test - ${{ matrix.crate }} - ${{ matrix.platform }} + steps: + - name: Checkout sources + uses: actions/checkout@v3 + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + - name: test ubuntu-latest + if: success() || failure() + run: chmod 777 ./ci_scripts/test-ubuntu.sh && ./ci_scripts/test-ubuntu.sh diff --git a/ci_scripts/lint-ubuntu.sh b/ci_scripts/lint-ubuntu.sh index 9275065..6f71b24 100644 --- a/ci_scripts/lint-ubuntu.sh +++ b/ci_scripts/lint-ubuntu.sh @@ -5,45 +5,4 @@ curl -L https://risczero.com/install | bash cargo install taplo-cli --locked cargo fmt -- --check - -cd accounts -cargo clippy --release -- -D warnings -cd .. - -cd consensus -cargo clippy --release -- -D warnings -cd .. - -cd mempool -cargo clippy --release -- -D warnings -cd .. - -cd networking -cargo clippy --release -- -D warnings -cd .. - -cd rpc_primitives -cargo clippy --release -- -D warnings -cd .. - -cd sequencer_core -cargo clippy --release -- -D warnings -cd .. - -cd sequencer_rpc -cargo clippy --release -- -D warnings -cd .. - -cd sequencer_runner -cargo clippy --release -- -D warnings -cd .. - -cd storage -cargo clippy --release -- -D warnings -cd .. - -cd utxo -cargo clippy --release -- -D warnings -cd .. - taplo fmt --check \ No newline at end of file diff --git a/ci_scripts/test-ubuntu.sh b/ci_scripts/test-ubuntu.sh new file mode 100644 index 0000000..53fc7bc --- /dev/null +++ b/ci_scripts/test-ubuntu.sh @@ -0,0 +1,6 @@ +set -e + +curl -L https://risczero.com/install | bash +/home/runner/.risc0/bin/rzup install + +cargo test --release \ No newline at end of file From 293dbd95db5a7eb660a9b505eceac99613f818c5 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 11:25:33 +0200 Subject: [PATCH 09/10] fix: ci test 8 --- .github/workflows/ci.yml | 108 +++++++++++++++++++-------------------- 1 file changed, 54 insertions(+), 54 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f0d53e..3d58b9a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,22 +14,22 @@ on: name: General jobs: - build-ubuntu-latest: - runs-on: ubuntu-latest - timeout-minutes: 60 + # build-ubuntu-latest: + # runs-on: ubuntu-latest + # timeout-minutes: 60 - name: build - ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true - - name: build - ubuntu-latest - if: success() || failure() - run: chmod 777 ./ci_scripts/build-ubuntu.sh && ./ci_scripts/build-ubuntu.sh + # name: build - ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - name: Install stable toolchain + # uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: nightly + # override: true + # - name: build - ubuntu-latest + # if: success() || failure() + # run: chmod 777 ./ci_scripts/build-ubuntu.sh && ./ci_scripts/build-ubuntu.sh build-macos-latest: @@ -49,46 +49,46 @@ jobs: if: success() || failure() run: chmod 777 ./ci_scripts/build-macos.sh && ./ci_scripts/build-macos.sh - lint: - strategy: - matrix: - platform: [ ubuntu-latest ] - runs-on: ${{ matrix.platform }} - timeout-minutes: 60 + # lint: + # strategy: + # matrix: + # platform: [ ubuntu-latest ] + # runs-on: ${{ matrix.platform }} + # timeout-minutes: 60 - name: lint - ${{ matrix.crate }} - ${{ matrix.platform }} - steps: - - name: Checkout sources - uses: actions/checkout@v3 - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true - components: rustfmt, clippy - - name: lint - ubuntu-latest - if: success() || failure() - run: chmod 777 ./ci_scripts/lint-ubuntu.sh && ./ci_scripts/lint-ubuntu.sh + # name: lint - ${{ matrix.crate }} - ${{ matrix.platform }} + # steps: + # - name: Checkout sources + # uses: actions/checkout@v3 + # - name: Install stable toolchain + # uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: nightly + # override: true + # components: rustfmt, clippy + # - name: lint - ubuntu-latest + # if: success() || failure() + # run: chmod 777 ./ci_scripts/lint-ubuntu.sh && ./ci_scripts/lint-ubuntu.sh - test: - strategy: - matrix: - platform: [ ubuntu-latest ] - runs-on: ${{ matrix.platform }} - timeout-minutes: 60 + # test: + # strategy: + # matrix: + # platform: [ ubuntu-latest ] + # runs-on: ${{ matrix.platform }} + # timeout-minutes: 60 - name: test - ${{ matrix.crate }} - ${{ matrix.platform }} - steps: - - name: Checkout sources - uses: actions/checkout@v3 - - name: Install stable toolchain - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: nightly - override: true - - name: test ubuntu-latest - if: success() || failure() - run: chmod 777 ./ci_scripts/test-ubuntu.sh && ./ci_scripts/test-ubuntu.sh + # name: test - ${{ matrix.crate }} - ${{ matrix.platform }} + # steps: + # - name: Checkout sources + # uses: actions/checkout@v3 + # - name: Install stable toolchain + # uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: nightly + # override: true + # - name: test ubuntu-latest + # if: success() || failure() + # run: chmod 777 ./ci_scripts/test-ubuntu.sh && ./ci_scripts/test-ubuntu.sh From b640471da871798dbcdd111c5988559ca9613326 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 11:27:42 +0200 Subject: [PATCH 10/10] fix: ci test 9 --- .github/workflows/ci.yml | 111 +++++++++++++++++---------------------- 1 file changed, 47 insertions(+), 64 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d58b9a..b717c10 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,29 +14,11 @@ on: name: General jobs: - # build-ubuntu-latest: - # runs-on: ubuntu-latest - # timeout-minutes: 60 - - # name: build - ubuntu-latest - # steps: - # - uses: actions/checkout@v3 - # - name: Install stable toolchain - # uses: actions-rs/toolchain@v1 - # with: - # profile: minimal - # toolchain: nightly - # override: true - # - name: build - ubuntu-latest - # if: success() || failure() - # run: chmod 777 ./ci_scripts/build-ubuntu.sh && ./ci_scripts/build-ubuntu.sh - - - build-macos-latest: - runs-on: macos-latest + build-ubuntu-latest: + runs-on: ubuntu-latest timeout-minutes: 60 - name: build - macos-latest + name: build - ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install stable toolchain @@ -45,50 +27,51 @@ jobs: profile: minimal toolchain: nightly override: true - - name: build - macos-latest + - name: build - ubuntu-latest if: success() || failure() - run: chmod 777 ./ci_scripts/build-macos.sh && ./ci_scripts/build-macos.sh - - # lint: - # strategy: - # matrix: - # platform: [ ubuntu-latest ] - # runs-on: ${{ matrix.platform }} - # timeout-minutes: 60 - - # name: lint - ${{ matrix.crate }} - ${{ matrix.platform }} - # steps: - # - name: Checkout sources - # uses: actions/checkout@v3 - # - name: Install stable toolchain - # uses: actions-rs/toolchain@v1 - # with: - # profile: minimal - # toolchain: nightly - # override: true - # components: rustfmt, clippy - # - name: lint - ubuntu-latest - # if: success() || failure() - # run: chmod 777 ./ci_scripts/lint-ubuntu.sh && ./ci_scripts/lint-ubuntu.sh + run: chmod 777 ./ci_scripts/build-ubuntu.sh && ./ci_scripts/build-ubuntu.sh - # test: - # strategy: - # matrix: - # platform: [ ubuntu-latest ] - # runs-on: ${{ matrix.platform }} - # timeout-minutes: 60 + lint: + strategy: + matrix: + platform: [ ubuntu-latest ] + runs-on: ${{ matrix.platform }} + timeout-minutes: 60 - # name: test - ${{ matrix.crate }} - ${{ matrix.platform }} - # steps: - # - name: Checkout sources - # uses: actions/checkout@v3 - # - name: Install stable toolchain - # uses: actions-rs/toolchain@v1 - # with: - # profile: minimal - # toolchain: nightly - # override: true - # - name: test ubuntu-latest - # if: success() || failure() - # run: chmod 777 ./ci_scripts/test-ubuntu.sh && ./ci_scripts/test-ubuntu.sh + name: lint - ${{ matrix.crate }} - ${{ matrix.platform }} + steps: + - name: Checkout sources + uses: actions/checkout@v3 + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: rustfmt, clippy + - name: lint - ubuntu-latest + if: success() || failure() + run: chmod 777 ./ci_scripts/lint-ubuntu.sh && ./ci_scripts/lint-ubuntu.sh + + + test: + strategy: + matrix: + platform: [ ubuntu-latest ] + runs-on: ${{ matrix.platform }} + timeout-minutes: 60 + + name: test - ${{ matrix.crate }} - ${{ matrix.platform }} + steps: + - name: Checkout sources + uses: actions/checkout@v3 + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + - name: test ubuntu-latest + if: success() || failure() + run: chmod 777 ./ci_scripts/test-ubuntu.sh && ./ci_scripts/test-ubuntu.sh