Skip to content

Commit

Permalink
test: add windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
blahgeek committed Jan 11, 2024
1 parent b98b873 commit 67781df
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Release

on:
release:
types: [created]
push:
branches: [ "build-windows" ]

jobs:
release:
Expand All @@ -11,12 +11,21 @@ jobs:
strategy:
fail-fast: false
matrix:
target: [x86_64-unknown-linux-musl, x86_64-apple-darwin]
target: [x86_64-unknown-linux-musl, x86_64-apple-darwin, x86_64-pc-windows-gnu]
steps:
- uses: actions/checkout@master
- name: Compile and release
id: compile
uses: rust-build/rust-build.action@v1.4.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
RUSTTARGET: ${{ matrix.target }}
UPLOAD_MODE: none
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Binary
path: |
${{ steps.compile.outputs.BUILT_ARCHIVE }}
${{ steps.compile.outputs.BUILT_CHECKSUM }}

0 comments on commit 67781df

Please sign in to comment.