2022-09-08 21:19:20 +00:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on: [ push, pull_request ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check:
|
|
|
|
name: Check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2022-09-08 21:34:59 +00:00
|
|
|
toolchain: [ stable, 1.62.0, nightly ]
|
2022-09-08 21:19:20 +00:00
|
|
|
fail-fast: false
|
|
|
|
env:
|
|
|
|
RUSTFLAGS: -D warnings
|
|
|
|
steps:
|
2022-09-08 21:33:16 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
if: matrix.platform == 'ubuntu-latest'
|
|
|
|
run: |
|
|
|
|
sudo apt install libgtk-3-dev
|
2022-09-08 21:19:20 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: ${{ matrix.toolchain }}
|
|
|
|
override: true
|
|
|
|
components: rustfmt, clippy
|
|
|
|
- uses: EmbarkStudios/cargo-deny-action@v1
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: check
|
|
|
|
args: --all-features
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: clippy
|
|
|
|
args: --all-features
|
|
|
|
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
platform: [ ubuntu-latest, macos-latest, windows-latest ]
|
2022-09-08 21:34:59 +00:00
|
|
|
toolchain: [ stable, 1.62.0, nightly ]
|
2022-09-08 21:19:20 +00:00
|
|
|
fail-fast: false
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
2022-09-08 21:33:16 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
if: matrix.platform == 'ubuntu-latest'
|
|
|
|
run: |
|
|
|
|
sudo apt install libgtk-3-dev
|
2022-09-08 21:19:20 +00:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
profile: minimal
|
|
|
|
toolchain: ${{ matrix.toolchain }}
|
|
|
|
override: true
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: test
|
|
|
|
args: --release --all-features
|
|
|
|
- uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: build
|
|
|
|
args: --release --all-features
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: ${{ matrix.platform }}-${{ matrix.toolchain }}
|
|
|
|
path: |
|
|
|
|
target/release/objdiff
|
|
|
|
target/release/objdiff.exe
|