-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #658 from svenstaro/modernize-ci
Get rid of deprecation warnings
- Loading branch information
Showing
2 changed files
with
8 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,6 @@ updates: | |
schedule: | ||
interval: monthly | ||
groups: | ||
all-depenencies: | ||
all-dependencies: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,36 +49,20 @@ jobs: | |
uses: actions/checkout@v4 | ||
|
||
- name: Setup Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
target: ${{ matrix.target }} | ||
override: true | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- uses: actions-rs/[email protected] | ||
with: | ||
crate: trunk | ||
version: latest | ||
use-tool-cache: true | ||
if: matrix.target == 'wasm32-unknown-unknown' | ||
|
||
- uses: actions-rs/[email protected] | ||
with: | ||
crate: wasm-bindgen-cli | ||
version: latest | ||
use-tool-cache: true | ||
- run: cargo install trunk wasm-bindgen-cli | ||
if: matrix.target == 'wasm32-unknown-unknown' | ||
|
||
- run: sudo apt install musl-tools | ||
if: startsWith(matrix.os, 'ubuntu') && matrix.target != 'wasm32-unknown-unknown' | ||
|
||
- name: cargo build | ||
uses: actions-rs/cargo@v1 | ||
uses: houseabsolute/actions-rust-cross@v0 | ||
with: | ||
command: build | ||
args: --release --locked --target=${{ matrix.target }} | ||
use-cross: ${{ matrix.cross }} | ||
if: matrix.target != 'wasm32-unknown-unknown' | ||
args: --release --locked ${{ matrix.cargo_flags }} | ||
target: ${{ matrix.target }} | ||
|
||
- name: trunk build | ||
run: trunk build --release | ||
|
@@ -91,10 +75,10 @@ jobs: | |
- name: Compress binaries | ||
uses: svenstaro/upx-action@v2 | ||
with: | ||
file: target/${{ matrix.target }}/release/genact${{ env.EXE }} | ||
files: target/${{ matrix.target }}/release/genact${{ env.EXE }} | ||
args: --best --lzma | ||
strip: false # We're stripping already in Cargo.toml | ||
if: matrix.target != 'wasm32-unknown-unknown' && matrix.target != 'x86_64-unknown-freebsd' | ||
if: matrix.target != 'wasm32-unknown-unknown' && matrix.target != 'x86_64-unknown-freebsd' && matrix.target != 'x86_64-apple-darwin' | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
|