Skip to content

Commit

Permalink
Add Windows builds
Browse files Browse the repository at this point in the history
Signed-off-by: Chaitanya Munukutla <[email protected]>
  • Loading branch information
c16a committed Aug 10, 2024
1 parent e2ed082 commit d8106f0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
lint:
name: DevSkim
name: Code Scan
runs-on: ubuntu-latest
permissions:
actions: read
Expand Down Expand Up @@ -62,6 +62,23 @@ jobs:
- x86_64-apple-darwin
name: Build ${{ matrix.target }} release binary
runs-on: macos-latest
needs:
- test
steps:
- uses: actions/checkout@v4
- name: Setup Rust target
run: |
rustup target add ${{ matrix.target }}
- name: Build
run: cargo build --target=${{ matrix.target }} --release
release-windows:
strategy:
matrix:
target:
- aarch64-pc-windows-msvc
- x86_64-pc-windows-msvc
name: Build ${{ matrix.target }} release binary
runs-on: windows-latest
needs:
- test
steps:
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
lint:
name: DevSkim
name: Code Scan
runs-on: ubuntu-latest
permissions:
actions: read
Expand Down Expand Up @@ -66,3 +66,20 @@ jobs:
rustup target add ${{ matrix.target }}
- name: Build
run: cargo build --target=${{ matrix.target }}
debug-windows:
strategy:
matrix:
target:
- aarch64-pc-windows-msvc
- x86_64-pc-windows-msvc
name: Build ${{ matrix.target }} debug binary
runs-on: windows-latest
needs:
- test
steps:
- uses: actions/checkout@v4
- name: Setup Rust target
run: |
rustup target add ${{ matrix.target }}
- name: Build
run: cargo build --target=${{ matrix.target }}

0 comments on commit d8106f0

Please sign in to comment.