-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (30 loc) · 897 Bytes
/
Release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
name: Windows
on:
release:
types: [created]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@master
- name: "Rust"
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: "x86_64-pc-windows-gnu"
- name: "Dependencies"
run: sudo apt-get install -y mingw-w64 libudev-dev zip wine64
- name: "Build"
run: cargo build --release --target x86_64-pc-windows-gnu
- name: "Zip"
run: |
cp target/x86_64-pc-windows-gnu/release/dygma-layer-switcher.exe .
zip windows-${{ github.ref_name }}.zip readme.md dygma-layer-switcher.exe assets/icons/icon.ico
- name: "Release"
uses: softprops/action-gh-release@v1
with:
files: |
windows-${{ github.ref_name }}.zip