Skip to content

Commit

Permalink
Release 0.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed Jan 24, 2023
2 parents e84c3d9 + 8822e5d commit 86aae32
Show file tree
Hide file tree
Showing 31 changed files with 831 additions and 396 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Coverage
on:
push:
branches:
- "*"
env:
RUST_BACKTRACE: 1
jobs:
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- nightly
target:
- x86_64-unknown-linux-gnu
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.version }}
- name: coverage
run: cargo run --release -- tarpaulin --engine llvm --follow-exec --post-test-delay 10 --coveralls ${{ secrets.COVERALLS_TOKEN }}

59 changes: 39 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,61 @@ name: Release
on:
push:
tags:
- '*.*.*'

- '[0-9]+.*'
jobs:
create-release:
name: "Create GitHub release"
# only publish from the origin repository
if: github.repository_owner == 'xd009642'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1
with:
changelog: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
crates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: publish package to crates
run: |
cargo package
cargo publish --token ${{ secrets.CARGO_TOKEN }}
binaries:
name: Build cargo-tarpaulin binaries for ${{ matrix.target }}
name: "Upload release binaries"
needs:
- create-release
strategy:
fail-fast: false
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-unknown-linux-musl
runs-on: ubuntu-latest
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-unknown-linux-musl
os: ubuntu-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: universal-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: install toolchain
uses: actions-rs/toolchain@v1
with:
target: ${{ matrix.target }}
override: true
- name: build
run: cargo build --release
- name: archive
run: |
GIT_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
tar -C target/${{ matrix.target }}/release -czf $(pwd)/cargo-tarpaulin-${GIT_TAG}-${{ matrix.target }}.tar.gz cargo-tarpaulin
- name: publish release
uses: softprops/action-gh-release@v1
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/upload-rust-binary-action@v1
with:
files: cargo-tarpaulin-*.tar.gz
bin: cargo-tarpaulin
target: ${{ matrix.target }}
features: vendored-openssl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38 changes: 6 additions & 32 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- "*"
pull_request_target:
pull_request:
env:
RUST_BACKTRACE: 1

Expand All @@ -23,15 +23,12 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.version }}
override: true
components: rustfmt
- name: cache
uses: Swatinem/rust-cache@v2
- name: build
run: cargo build
- name: test
run: cargo test
- name: ignored test
Expand Down Expand Up @@ -60,14 +57,11 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.version }}
override: true
- name: cache
uses: Swatinem/rust-cache@v2
- name: build
run: cargo build
- name: test
run: cargo test
- uses: actions/upload-artifact@v3
Expand All @@ -90,38 +84,18 @@ jobs:
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.version }}
override: true
- name: cache
uses: Swatinem/rust-cache@v2
- name: build
run: cargo build
- name: test
run: cargo test
run: cargo test || true
- uses: actions/upload-artifact@v3
if: failure()
#if: failure()
with:
name: mac ${{ matrix.version }}
retention-days: 3
path: |
tests/data/
!tests/data/**/*.rs
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- nightly
target:
- x86_64-unknown-linux-gnu
fail-fast: false
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.version }}
override: true
- name: coverage
run: cargo run --release -- tarpaulin --engine llvm --follow-exec --post-test-delay 10 --coveralls ${{ secrets.COVERALLS_TOKEN }}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,20 @@
From 2019 onwards, all notable changes to tarpaulin will be documented in this
file.

## [0.24.0] 2023-01-24
### Added
- Merge rustdocflags field from `cargo/config.toml` with env tarpaulin sets

### Changed
- Create profraw folder if it doesn't exist
- Normalise UNC paths provided via env or CLI args
- Make output directory crate root if not provided
- If root is not provided fall-back to root from manifest for base directory when printing
reports not the current directory
- Change exclude-files pattern to use glob crate instead of a regex
- Set `LLVM_PROFILE_FILE` so profraw files go directly to target dir
- Make llvm coverage single threaded to avoid concurrency issues when writing profraw files

## [0.23.1] 2022-11-18
### Changed
- Fix linux cfg instead of ptrace\_supported cfg on event log for ARM linux builds
Expand Down
Loading

0 comments on commit 86aae32

Please sign in to comment.