From 7bc2dd0873b44d3e3475d0c94ec095cca7ff2a99 Mon Sep 17 00:00:00 2001 From: Raul Victor Trombin Date: Tue, 7 Nov 2023 16:53:51 -0300 Subject: [PATCH] test-sudo --- .github/workflows/action.yml | 132 +++++++++++++++++------------------ 1 file changed, 66 insertions(+), 66 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 70722bf445..51e7784376 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -6,45 +6,45 @@ permissions: contents: write jobs: - quick-tests: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - uses: actions-rs/toolchain@v1.0.6 - with: - toolchain: stable - override: true - - name: Check Type - run: cargo fmt -- --check - - name: Check Clippy - run: cargo clippy -- -Dwarnings - - name: Run internal tests - run: cargo test --verbose -- --nocapture - - name: Build - run: cargo build + # quick-tests: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@master + # - uses: actions-rs/toolchain@v1.0.6 + # with: + # toolchain: stable + # override: true + # - name: Check Type + # run: cargo fmt -- --check + # - name: Check Clippy + # run: cargo clippy -- -Dwarnings + # - name: Run internal tests + # run: cargo test --verbose -- --nocapture + # - name: Build + # run: cargo build - build: - needs: quick-tests - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - uses: actions-rs/toolchain@v1.0.6 - with: - toolchain: stable - override: true - - name: Build docs - run: cargo doc - - name: Move documentation - run: mkdir -p pages/doc && mv target/doc/* pages/doc/ - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - if: ${{ github.ref == 'refs/heads/master' }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./pages + # build: + # needs: quick-tests + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@master + # - uses: actions-rs/toolchain@v1.0.6 + # with: + # toolchain: stable + # override: true + # - name: Build docs + # run: cargo doc + # - name: Move documentation + # run: mkdir -p pages/doc && mv target/doc/* pages/doc/ + # - name: Deploy + # uses: peaceiris/actions-gh-pages@v3 + # if: ${{ github.ref == 'refs/heads/master' }} + # with: + # github_token: ${{ secrets.GITHUB_TOKEN }} + # publish_dir: ./pages bench: - needs: build + # needs: build runs-on: raspbian-armv7-kernel-5.10.33 steps: - uses: actions/checkout@master @@ -53,11 +53,11 @@ jobs: # toolchain: stable # override: true - uses: dtolnay/rust-toolchain@stable - # - name: Rust | Cache - # uses: Swatinem/rust-cache@v2 - # with: - # prefix-key: "rust-cache" - # shared-key: "benchmark" + - name: Rust | Cache + uses: Swatinem/rust-cache@v2 + with: + prefix-key: "rust-cache" + shared-key: "benchmark" - name: Cargo Bench run: cargo bench --jobs 1 --bench bench -- --output-format bencher | tee output.txt - name: Compare results & store cached results @@ -93,28 +93,28 @@ jobs: git commit -m "Update benchmark-data file" git push origin gh-pages - deploy: - needs: build - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - steps: - - name: Checkout to repository - uses: actions/checkout@v2 - - name: Setup Rust toolchain - uses: actions-rs/toolchain@v1.0.7 - with: - toolchain: stable - override: true - - name: Install cargo-bump - run: cargo install cargo-bump --force - - name: Modify version with tag - run: cargo bump ${{ github.ref_name }} - - name: Automatic commit for crate version upgrade - uses: stefanzweifel/git-auto-commit-action@v4 - with: - branch: master - commit_message: "Cargo: Update the crate version to ${{ github.ref_name }}" - - name: Publish to crates.io - uses: katyo/publish-crates@v1 - with: - registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} + # deploy: + # needs: build + # runs-on: ubuntu-latest + # if: startsWith(github.ref, 'refs/tags/') + # steps: + # - name: Checkout to repository + # uses: actions/checkout@v2 + # - name: Setup Rust toolchain + # uses: actions-rs/toolchain@v1.0.7 + # with: + # toolchain: stable + # override: true + # - name: Install cargo-bump + # run: cargo install cargo-bump --force + # - name: Modify version with tag + # run: cargo bump ${{ github.ref_name }} + # - name: Automatic commit for crate version upgrade + # uses: stefanzweifel/git-auto-commit-action@v4 + # with: + # branch: master + # commit_message: "Cargo: Update the crate version to ${{ github.ref_name }}" + # - name: Publish to crates.io + # uses: katyo/publish-crates@v1 + # with: + # registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}