diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 9e734c2..220e8a4 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -9,7 +9,7 @@ env: jobs: lint: - name: DevSkim + name: Code Scan runs-on: ubuntu-latest permissions: actions: read @@ -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: diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index b8fcf00..85d7fad 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -9,7 +9,7 @@ env: jobs: lint: - name: DevSkim + name: Code Scan runs-on: ubuntu-latest permissions: actions: read @@ -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 }} \ No newline at end of file