surely this works first try right guys?
This commit is contained in:
parent
15b544da52
commit
9bdbb3672a
@ -8,25 +8,40 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target:
|
||||||
|
- x86_64-pc-windows-gnu
|
||||||
|
- x86_64-unknown-linux-gnu
|
||||||
|
include:
|
||||||
|
- target: x86_64-pc-windows-gnu
|
||||||
|
os: windows
|
||||||
|
extension: .exe
|
||||||
|
- target: x86_64-unknown-linux-gnu
|
||||||
|
os: linux
|
||||||
|
extension: ""
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install rust
|
- name: Install rust
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
targets: "x86_64-pc-windows-gnu"
|
targets: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Install cross compilation tools
|
- name: Install cross compilation tools
|
||||||
|
if: matrix.target == 'x86_64-pc-windows-gnu'
|
||||||
run: sudo apt-get update && sudo apt-get install mingw-w64 -y
|
run: sudo apt-get update && sudo apt-get install mingw-w64 -y
|
||||||
|
|
||||||
- name: Setup Cache
|
- name: Setup Cache
|
||||||
uses: Swatinem/rust-cache@v2
|
uses: Swatinem/rust-cache@v2
|
||||||
|
with:
|
||||||
|
key: ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Build release
|
- name: Build release
|
||||||
run: cargo build --verbose --locked --release --target x86_64-pc-windows-gnu
|
run: cargo build --verbose --locked --release --target ${{ matrix.target }}
|
||||||
|
|
||||||
- name: Archive build
|
- name: Archive build
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: alt_enter_fix
|
name: alt_enter_fix-${{ matrix.os }}
|
||||||
path: target/x86_64-pc-windows-gnu/release/alt_enter_fix.exe
|
path: target/${{ matrix.target }}/release/alt_enter_fix${{ matrix.extension }}
|
Loading…
x
Reference in New Issue
Block a user