diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5686506..db10192 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -29,7 +29,7 @@ jobs: - name: Setup Rust toolchain uses: dtolnay/rust-toolchain@stable with: - components: rustfmt, clippy + components: clippy - name: Cargo check run: cargo check - name: Cargo clippy @@ -97,15 +97,19 @@ jobs: target: x86_64-unknown-linux-gnu name: linux-x86_64 packages: libgtk-3-dev + features: default - platform: windows-latest target: x86_64-pc-windows-msvc name: windows-x86_64 + features: default - platform: macos-latest target: x86_64-apple-darwin name: macos-x86_64 + features: wgpu - platform: macos-latest target: aarch64-apple-darwin name: macos-arm64 + features: wgpu fail-fast: false runs-on: ${{ matrix.platform }} steps: @@ -121,7 +125,9 @@ jobs: with: targets: ${{ matrix.target }} - name: Cargo build - run: cargo build --profile ${{ env.BUILD_PROFILE }} --target ${{ matrix.target }} --bin ${{ env.CARGO_BIN_NAME }} + run: | + cargo build --profile ${{ env.BUILD_PROFILE }} --target ${{ matrix.target }} \ + --bin ${{ env.CARGO_BIN_NAME }} --features ${{ matrix.features }} - name: Upload artifacts uses: actions/upload-artifact@v3 with: diff --git a/README.md b/README.md index 97bcb60..9e79a3d 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,17 @@ If not specified, objdiff will use the default patterns listed above. > `reverse_fn_order` _(optional)_: Displays function symbols in reversed order. Used to support MWCC's `-inline deferred` option, which reverses the order of functions in the object file. +## Building +Install Rust via [rustup](https://rustup.rs). + +```shell +$ git clone https://github.com/encounter/objdiff.git +$ cd objdiff +$ cargo run --release +# or, for wgpu backend (recommended on macOS) +$ cargo run --release --features wgpu +``` ## License