ci: update build_test_common_os
This commit is contained in:
@@ -14,7 +14,6 @@ jobs:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macOS-latest]
|
||||
toolchain: [stable]
|
||||
feature: [ no_feature ]
|
||||
steps:
|
||||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
|
||||
- name: Setup Rust
|
||||
@@ -22,24 +21,11 @@ jobs:
|
||||
with:
|
||||
toolchain: ${{ matrix.toolchain }}
|
||||
override: true
|
||||
- name: Setup Feature Args
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ "${{ matrix.feature }}" == "no_feature" ]]; then
|
||||
echo "FEATURE_ARGS=" >> $GITHUB_ENV
|
||||
else
|
||||
echo "FEATURE_ARGS=-F ${{ matrix.feature }}" >> $GITHUB_ENV
|
||||
fi
|
||||
- uses: extractions/setup-just@v1
|
||||
- name: Ls
|
||||
run: ls -al
|
||||
- name: Build
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: ${{ env.FEATURE_ARGS }}
|
||||
- name: Run tests
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: ${{ env.FEATURE_ARGS }}
|
||||
run: just
|
||||
release:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user