ci: use cargo-action v0.0.4 (#1207)

* ci: use cargo-action v0.0.4

* comments/labels
This commit is contained in:
Clement Tsang 2023-06-15 06:05:47 +00:00 committed by GitHub
parent 6c7635038d
commit 9ad72bf365
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 11 deletions

View file

@ -1,6 +1,7 @@
# Builds the following releases: # Builds the following releases:
# - Binary releases # - Binary releases
# - Debian releases (.deb) # - .deb releases
# - .rpm releases
# - MSI installer for Windows (.msi) # - MSI installer for Windows (.msi)
# - Cirrus CI binaries # - Cirrus CI binaries
# - FreeBSD (x86_64) # - FreeBSD (x86_64)
@ -141,7 +142,7 @@ jobs:
echo "$HOME/.cargo/bin" >> $GITHUB_PATH echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Build - name: Build
uses: ClementTsang/cargo-action@v0.0.3 uses: ClementTsang/cargo-action@v0.0.4
env: env:
BTM_GENERATE: true BTM_GENERATE: true
BTM_BUILD_RELEASE_CALLER: ${{ inputs.caller }} BTM_BUILD_RELEASE_CALLER: ${{ inputs.caller }}
@ -281,7 +282,7 @@ jobs:
path: release path: release
build-deb: build-deb:
name: "Build Debian .deb software packages" name: "Build .deb software packages"
runs-on: "ubuntu-20.04" runs-on: "ubuntu-20.04"
strategy: strategy:
fail-fast: false fail-fast: false
@ -327,7 +328,7 @@ jobs:
# TODO: Could I use the previous jobs to skip this call? # TODO: Could I use the previous jobs to skip this call?
- name: Build - name: Build
uses: ClementTsang/cargo-action@v0.0.3 uses: ClementTsang/cargo-action@v0.0.4
env: env:
BTM_GENERATE: true BTM_GENERATE: true
BTM_BUILD_RELEASE_CALLER: ${{ inputs.caller }} BTM_BUILD_RELEASE_CALLER: ${{ inputs.caller }}
@ -402,7 +403,7 @@ jobs:
path: release path: release
build-rpm: build-rpm:
name: "Build Red Hat .rpm software packages" name: "Build .rpm software packages"
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: ghcr.io/clementtsang/almalinux-8 container: ghcr.io/clementtsang/almalinux-8
strategy: strategy:
@ -425,7 +426,7 @@ jobs:
# TODO: Could I use the previous jobs to skip this call? # TODO: Could I use the previous jobs to skip this call?
- name: Build - name: Build
uses: ClementTsang/cargo-action@v0.0.3 uses: ClementTsang/cargo-action@v0.0.4
env: env:
BTM_GENERATE: true BTM_GENERATE: true
BTM_BUILD_RELEASE_CALLER: ${{ inputs.caller }} BTM_BUILD_RELEASE_CALLER: ${{ inputs.caller }}

View file

@ -106,7 +106,7 @@ jobs:
run: cargo fmt --all -- --check run: cargo fmt --all -- --check
- name: Build tests - name: Build tests
uses: ClementTsang/cargo-action@v0.0.3 uses: ClementTsang/cargo-action@v0.0.4
with: with:
command: test command: test
args: --no-run --locked ${{ matrix.features }} --target=${{ matrix.info.target }} args: --no-run --locked ${{ matrix.features }} --target=${{ matrix.info.target }}
@ -116,7 +116,7 @@ jobs:
RUST_BACKTRACE: full RUST_BACKTRACE: full
- name: Run tests - name: Run tests
uses: ClementTsang/cargo-action@v0.0.3 uses: ClementTsang/cargo-action@v0.0.4
with: with:
command: test command: test
args: --no-fail-fast ${{ matrix.features }} --target=${{ matrix.info.target }} -- --nocapture --quiet args: --no-fail-fast ${{ matrix.features }} --target=${{ matrix.info.target }} -- --nocapture --quiet
@ -126,7 +126,7 @@ jobs:
RUST_BACKTRACE: full RUST_BACKTRACE: full
- name: Run clippy - name: Run clippy
uses: ClementTsang/cargo-action@v0.0.3 uses: ClementTsang/cargo-action@v0.0.4
with: with:
command: clippy command: clippy
args: ${{ matrix.features }} --all-targets --workspace --target=${{ matrix.info.target }} -- -D warnings args: ${{ matrix.features }} --all-targets --workspace --target=${{ matrix.info.target }} -- -D warnings
@ -257,7 +257,7 @@ jobs:
cache-all-crates: true cache-all-crates: true
- name: Try building with only default features enabled - name: Try building with only default features enabled
uses: ClementTsang/cargo-action@v0.0.3 uses: ClementTsang/cargo-action@v0.0.4
if: ${{ matrix.info.no-default-features != true }} if: ${{ matrix.info.no-default-features != true }}
with: with:
command: build command: build
@ -266,7 +266,7 @@ jobs:
cross-version: 0.2.5 cross-version: 0.2.5
- name: Try building with no features enabled - name: Try building with no features enabled
uses: ClementTsang/cargo-action@v0.0.3 uses: ClementTsang/cargo-action@v0.0.4
if: ${{ matrix.info.no-default-features == true }} if: ${{ matrix.info.no-default-features == true }}
with: with:
command: build command: build