Simplify and optimize CI workflows
This commit is contained in:
parent
fa7d3d9067
commit
ef1d87427d
2 changed files with 22 additions and 10 deletions
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
|
|
@ -39,6 +39,19 @@ jobs:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Rust toolchain
|
||||||
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: nightly
|
||||||
|
cache-bin: false
|
||||||
|
cache-shared-key: cache
|
||||||
|
|
||||||
|
- name: Install cargo-deb
|
||||||
|
if: endsWith(matrix.target, '-linux-gnu')
|
||||||
|
uses: taiki-e/install-action@v2
|
||||||
|
with:
|
||||||
|
tool: cargo-deb
|
||||||
|
|
||||||
- name: Get the Oxipng version
|
- name: Get the Oxipng version
|
||||||
id: oxipngMeta
|
id: oxipngMeta
|
||||||
run:
|
run:
|
||||||
|
|
@ -95,7 +108,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir -p "target/${{ matrix.target }}/release"
|
mkdir -p "target/${{ matrix.target }}/release"
|
||||||
mv target/oxipng "target/${{ matrix.target }}/release"
|
mv target/oxipng "target/${{ matrix.target }}/release"
|
||||||
cargo install --locked cargo-deb
|
|
||||||
cargo deb --target "${{ matrix.target }}" --no-build --no-strip
|
cargo deb --target "${{ matrix.target }}" --no-build --no-strip
|
||||||
|
|
||||||
- name: Create release notes
|
- name: Create release notes
|
||||||
|
|
|
||||||
18
.github/workflows/oxipng.yml
vendored
18
.github/workflows/oxipng.yml
vendored
|
|
@ -91,15 +91,14 @@ jobs:
|
||||||
# against glibc for the target architecture
|
# against glibc for the target architecture
|
||||||
sudo apt-get -yq install qemu-user gcc-aarch64-linux-gnu libc6:arm64
|
sudo apt-get -yq install qemu-user gcc-aarch64-linux-gnu libc6:arm64
|
||||||
|
|
||||||
- name: Cache Cargo artifacts
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@v1
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
targets: ${{ env.CARGO_BUILD_TARGET }}
|
target: ${{ env.CARGO_BUILD_TARGET }}
|
||||||
components: clippy, rustfmt
|
components: clippy, rustfmt
|
||||||
|
cache-bin: false
|
||||||
|
cache-shared-key: cache
|
||||||
|
|
||||||
- name: Install nextest
|
- name: Install nextest
|
||||||
uses: taiki-e/install-action@nextest
|
uses: taiki-e/install-action@nextest
|
||||||
|
|
@ -181,11 +180,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
|
||||||
- name: Cache Cargo artifacts
|
|
||||||
uses: Swatinem/rust-cache@v2
|
|
||||||
|
|
||||||
- name: Install MSRV Rust toolchain
|
- name: Install MSRV Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@1.74.0
|
uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||||
|
with:
|
||||||
|
toolchain: 1.74.0
|
||||||
|
cache-bin: false
|
||||||
|
cache-shared-key: cache
|
||||||
|
|
||||||
- name: Install nextest
|
- name: Install nextest
|
||||||
uses: taiki-e/install-action@nextest
|
uses: taiki-e/install-action@nextest
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue