Skip to content

Commit

Permalink
Create rust.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
floaterest authored Oct 22, 2023
1 parent 3c0347c commit 45d33f5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build Release
on:
push:
workflow_dispatch:

jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target: ['x86_64-unknown-linux-gnu', 'x86_64-pc-windows-gnu']
steps:
- uses: actions/checkout@v2

- name: 'Windows: Install GCC linker'
run: sudo apt install mingw-w64
if: matrix.target == 'x86_64-pc-windows-gnu'

- name: Build for ${{ matrix.target }}
run: |
rustup target add ${{ matrix.target }}
cargo build --release --target ${{ matrix.target }}
- uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}
path: |
target/${{ matrix.target }}/release

0 comments on commit 45d33f5

Please sign in to comment.