From e98cd3f445be3c513bc1650e2b2ca9840a4ef027 Mon Sep 17 00:00:00 2001 From: "beltram.maldant" Date: Sun, 7 Mar 2021 10:33:32 +0100 Subject: [PATCH] attempt(1) --- .github/workflows/audit.yml | 28 ++--- .github/workflows/coverage.yml | 6 +- .github/workflows/release.yml | 190 ++++++++++++++++----------------- 3 files changed, 112 insertions(+), 112 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 3bc559c4..df1abf10 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -1,14 +1,14 @@ -name: security-audit -on: - push: - paths: - - '**/Cargo.toml' - - '**/Cargo.lock' -jobs: - security_audit: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2.3.4 - - uses: actions-rs/audit-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file +#name: security-audit +#on: +# push: +# paths: +# - '**/Cargo.toml' +# - '**/Cargo.lock' +#jobs: +# security_audit: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2.3.4 +# - uses: actions-rs/audit-check@v1 +# with: +# token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 24012571..1c4bdaf4 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -7,10 +7,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.3.4 + with: + fetch-depth: 0 - uses: Swatinem/rust-cache@v1 - name: Coverage uses: actions-rs/tarpaulin@v0.1 with: - args: --ignore-tests - - name: Upload to codecov.io - uses: codecov/codecov-action@v1 \ No newline at end of file + args: --ignore-tests --ciserver github-ci --coveralls ${{ secrets.COVERALLS_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aff04b24..93c22c06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,95 +1,95 @@ -name: ci - -on: [ push, pull_request ] - -env: - CARGO_TERM_COLOR: always - -jobs: - check: - strategy: - matrix: - os: [ macos-latest, windows-latest, ubuntu-latest ] - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v2.3.4 - - uses: Swatinem/rust-cache@v1 - - name: cargo/check - run: cargo check - - name: cargo/test - run: cargo test - - name: cargo/clippy - if: ${{ matrix.os == 'ubuntu-latest' }} - run: cargo clippy - release: - # runs on tags only - if: startsWith(github.ref, 'refs/tags/') - needs: [check] - strategy: - matrix: - include: - - os: ubuntu-latest - file: stubr - from-file: ./target/release/stubr - to-file: stubr-linux.tar.gz - args: --best --lzma - strip: true - - os: macos-latest - file: stubr - from-file: ./target/release/stubr - to-file: stubr-macos.tar.gz - args: --best - strip: true - - os: windows-latest - file: stubr.exe - from-file: ./target/release/stubr.exe - to-file: stubr-windows.zip - args: -9 - strip: false - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v2.3.4 - - uses: Swatinem/rust-cache@v1 - - name: cargo/build - run: cargo build --release - - name: upx - uses: svenstaro/upx-action@v2 - with: - file: ${{ matrix.from-file }} - args: ${{ matrix.args }} - strip: ${{ matrix.strip }} - - name: compression/tar - if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }} - run: | - cd target/release - tar czf ${{ matrix.to-file }} ${{ matrix.file }} - mv ${{ matrix.to-file }} ../.. - - name: compression/zip - if: ${{ matrix.os == 'windows-latest' }} - run: | - cd target/release - 7z a ${{ matrix.to-file }} ${{ matrix.file }} - mv ${{ matrix.to-file }} ../.. - - name: release-binary - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - files: ${{ matrix.to-file }} - publish: - # runs on tags only - if: startsWith(github.ref, 'refs/tags/') - runs-on: ubuntu-latest - needs: [release] - steps: - - uses: actions/checkout@v2.3.4 - - uses: Swatinem/rust-cache@v1 - - name: publish lib - run: | - cd lib - cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} - - name: publish cli - run: | - cd cli - sleep 180 - cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} \ No newline at end of file +#name: ci +# +#on: [ push, pull_request ] +# +#env: +# CARGO_TERM_COLOR: always +# +#jobs: +# check: +# strategy: +# matrix: +# os: [ macos-latest, windows-latest, ubuntu-latest ] +# runs-on: ${{ matrix.os }} +# steps: +# - uses: actions/checkout@v2.3.4 +# - uses: Swatinem/rust-cache@v1 +# - name: cargo/check +# run: cargo check +# - name: cargo/test +# run: cargo test +# - name: cargo/clippy +# if: ${{ matrix.os == 'ubuntu-latest' }} +# run: cargo clippy +# release: +# # runs on tags only +# if: startsWith(github.ref, 'refs/tags/') +# needs: [check] +# strategy: +# matrix: +# include: +# - os: ubuntu-latest +# file: stubr +# from-file: ./target/release/stubr +# to-file: stubr-linux.tar.gz +# args: --best --lzma +# strip: true +# - os: macos-latest +# file: stubr +# from-file: ./target/release/stubr +# to-file: stubr-macos.tar.gz +# args: --best +# strip: true +# - os: windows-latest +# file: stubr.exe +# from-file: ./target/release/stubr.exe +# to-file: stubr-windows.zip +# args: -9 +# strip: false +# runs-on: ${{ matrix.os }} +# steps: +# - uses: actions/checkout@v2.3.4 +# - uses: Swatinem/rust-cache@v1 +# - name: cargo/build +# run: cargo build --release +# - name: upx +# uses: svenstaro/upx-action@v2 +# with: +# file: ${{ matrix.from-file }} +# args: ${{ matrix.args }} +# strip: ${{ matrix.strip }} +# - name: compression/tar +# if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }} +# run: | +# cd target/release +# tar czf ${{ matrix.to-file }} ${{ matrix.file }} +# mv ${{ matrix.to-file }} ../.. +# - name: compression/zip +# if: ${{ matrix.os == 'windows-latest' }} +# run: | +# cd target/release +# 7z a ${{ matrix.to-file }} ${{ matrix.file }} +# mv ${{ matrix.to-file }} ../.. +# - name: release-binary +# uses: softprops/action-gh-release@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# files: ${{ matrix.to-file }} +# publish: +# # runs on tags only +# if: startsWith(github.ref, 'refs/tags/') +# runs-on: ubuntu-latest +# needs: [release] +# steps: +# - uses: actions/checkout@v2.3.4 +# - uses: Swatinem/rust-cache@v1 +# - name: publish lib +# run: | +# cd lib +# cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} +# - name: publish cli +# run: | +# cd cli +# sleep 180 +# cargo publish --token ${{ secrets.CRATES_IO_TOKEN }} \ No newline at end of file