From 43412fda956e3d108a7a087b66203394a1921509 Mon Sep 17 00:00:00 2001 From: Romane Lafon Date: Fri, 14 Jun 2024 09:49:25 +0200 Subject: [PATCH] tarpaulin --- .github/workflows/main.yml | 166 ++++++++++++++++++------------------- 1 file changed, 83 insertions(+), 83 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e20aaf0..fbdc604 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,95 +13,95 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - build_and_test: - # The type of runner that the job will run on - runs-on: ubuntu-22.04 - container: nomalab/ffmpeg:5.0.1 - - continue-on-error: ${{ (matrix.rust == 'beta') || (matrix.rust == 'nightly') }} - - strategy: - fail-fast: false - matrix: - rust: [ - 1.71.0, - 1.72.0, - 1.73.0, - 1.74.0, - 1.75.0, - 1.76.0, - 1.77.0, - 1.78.0, - stable, - beta, - nightly - ] - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - - uses: actions/checkout@v3 - - - name: Install Rust - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: ${{ matrix.rust }} - default: true - - - name: Run cargo test - run: cargo test - env: - PKG_CONFIG_PATH: "/ffmpeg_build/lib/pkgconfig:$PKG_CONFIG_PATH" - - fmt: - runs-on: ubuntu-22.04 - - steps: - - uses: actions/checkout@v3 - - - name: Install Rust with rustfmt - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - default: true - components: rustfmt - - - name: Show version - run: cargo fmt --version - - - name: Run cargo fmt - run: cargo fmt -- --check - - clippy: - runs-on: ubuntu-22.04 - container: nomalab/ffmpeg:5.0.1 - - steps: - - uses: actions/checkout@v3 - - - name: Install Rust with clippy - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - default: true - components: clippy - - - name: Run cargo clippy - run: cargo clippy 2>&1 | tee ./clippy.out && ! grep -qe "error:\|warning:" ./clippy.out - env: - PKG_CONFIG_PATH: "/ffmpeg_build/lib/pkgconfig:$PKG_CONFIG_PATH" + # build_and_test: + # # The type of runner that the job will run on + # runs-on: ubuntu-22.04 + # container: nomalab/ffmpeg:5.0.1 + + # continue-on-error: ${{ (matrix.rust == 'beta') || (matrix.rust == 'nightly') }} + + # strategy: + # fail-fast: false + # matrix: + # rust: [ + # 1.71.0, + # 1.72.0, + # 1.73.0, + # 1.74.0, + # 1.75.0, + # 1.76.0, + # 1.77.0, + # 1.78.0, + # stable, + # beta, + # nightly + # ] + + # # Steps represent a sequence of tasks that will be executed as part of the job + # steps: + # - uses: actions/checkout@v3 + + # - name: Install Rust + # uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: ${{ matrix.rust }} + # default: true + + # - name: Run cargo test + # run: cargo test + # env: + # PKG_CONFIG_PATH: "/ffmpeg_build/lib/pkgconfig:$PKG_CONFIG_PATH" + + # fmt: + # runs-on: ubuntu-22.04 + + # steps: + # - uses: actions/checkout@v3 + + # - name: Install Rust with rustfmt + # uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: stable + # default: true + # components: rustfmt + + # - name: Show version + # run: cargo fmt --version + + # - name: Run cargo fmt + # run: cargo fmt -- --check + + # clippy: + # runs-on: ubuntu-22.04 + # container: nomalab/ffmpeg:5.0.1 + + # steps: + # - uses: actions/checkout@v3 + + # - name: Install Rust with clippy + # uses: actions-rs/toolchain@v1 + # with: + # profile: minimal + # toolchain: stable + # default: true + # components: clippy + + # - name: Run cargo clippy + # run: cargo clippy 2>&1 | tee ./clippy.out && ! grep -qe "error:\|warning:" ./clippy.out + # env: + # PKG_CONFIG_PATH: "/ffmpeg_build/lib/pkgconfig:$PKG_CONFIG_PATH" tarpaulin: runs-on: ubuntu-22.04 - container: nomalab/ffmpeg:5.0.1 + # container: nomalab/ffmpeg:5.0.1 steps: - uses: actions/checkout@v3 - name: Install lib - run: apt update && apt install libssl-dev + run: sudo apt update && sudo apt install libasound-dev - name: Install Rust uses: actions-rs/toolchain@v1 @@ -117,6 +117,6 @@ jobs: - name: Run cargo-tarpaulin run: cargo tarpaulin -v --ciserver travis-ci --coveralls $GITHUB_JOB - env: - PKG_CONFIG_PATH: "/ffmpeg_build/lib/pkgconfig:$PKG_CONFIG_PATH" + # env: + # PKG_CONFIG_PATH: "/ffmpeg_build/lib/pkgconfig:$PKG_CONFIG_PATH"