mirror of https://github.com/encounter/objdiff.git
Build macOS with wgpu enabled
This commit is contained in:
parent
67cea2a8d9
commit
53e6e0c7c4
|
@ -29,7 +29,7 @@ jobs:
|
||||||
- name: Setup Rust toolchain
|
- name: Setup Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
components: rustfmt, clippy
|
components: clippy
|
||||||
- name: Cargo check
|
- name: Cargo check
|
||||||
run: cargo check
|
run: cargo check
|
||||||
- name: Cargo clippy
|
- name: Cargo clippy
|
||||||
|
@ -97,15 +97,19 @@ jobs:
|
||||||
target: x86_64-unknown-linux-gnu
|
target: x86_64-unknown-linux-gnu
|
||||||
name: linux-x86_64
|
name: linux-x86_64
|
||||||
packages: libgtk-3-dev
|
packages: libgtk-3-dev
|
||||||
|
features: default
|
||||||
- platform: windows-latest
|
- platform: windows-latest
|
||||||
target: x86_64-pc-windows-msvc
|
target: x86_64-pc-windows-msvc
|
||||||
name: windows-x86_64
|
name: windows-x86_64
|
||||||
|
features: default
|
||||||
- platform: macos-latest
|
- platform: macos-latest
|
||||||
target: x86_64-apple-darwin
|
target: x86_64-apple-darwin
|
||||||
name: macos-x86_64
|
name: macos-x86_64
|
||||||
|
features: wgpu
|
||||||
- platform: macos-latest
|
- platform: macos-latest
|
||||||
target: aarch64-apple-darwin
|
target: aarch64-apple-darwin
|
||||||
name: macos-arm64
|
name: macos-arm64
|
||||||
|
features: wgpu
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
|
@ -121,7 +125,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
targets: ${{ matrix.target }}
|
targets: ${{ matrix.target }}
|
||||||
- name: Cargo build
|
- 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
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|
10
README.md
10
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.
|
> `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.
|
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
|
## License
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue