Skip to content

Commit

Permalink
feat: add report
Browse files Browse the repository at this point in the history
  • Loading branch information
jincheng.zhang committed May 24, 2024
1 parent 0f5359b commit 922e0e2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ jobs:
- build: macos
os: macos-latest
target: x86_64-apple-darwin
toolchain: aarch64-apple-darwin
- build: windows-msvc
os: windows-latest
target: x86_64-pc-windows-msvc
toolchain: x86_64-pc-windows-msvc
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -38,30 +36,28 @@ jobs:
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2024-04-29
targets: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}

- name: Add win target
if: "${{ matrix.os == 'windows-latest' }}"
run: rustup target add x86_64-pc-windows-msvc

- name: Build Win
if: "${{ matrix.os == 'windows-latest' }}"
run: cargo +nightly build --release --target ${{ matrix.target }}
run: cargo +nightly-2024-04-29 build --release --target ${{ matrix.target }}

- name: Add mac target
if: "${{ matrix.os == 'macos-latest' }}"
run: rustup target add x86_64-apple-darwin

- name: Add Bundle
if: "${{ matrix.os == 'macos-latest' }}"
run: |
rustup toolchain install nightly-2024-04-29-aarch64-apple-darwin
cargo install cargo-bundle
run: cargo install cargo-bundle

- name: Build Mac
if: "${{ matrix.os == 'macos-latest' }}"
working-directory: ./crates/netpurr
run: cargo +nightly bundle --release --target ${{ matrix.target }}
run: cargo +nightly-2024-04-29 bundle --release --target ${{ matrix.target }}

- name: Build archive
shell: bash
Expand Down

0 comments on commit 922e0e2

Please sign in to comment.