From b640471da871798dbcdd111c5988559ca9613326 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Mon, 25 Nov 2024 11:27:42 +0200 Subject: [PATCH] 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