-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 989 Bytes
/
windows-native.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
38
39
40
41
42
name: Windows native
on:
push:
branches: [ main ]
tags: [ '*.*.*' ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true
- name: Run tests
uses: actions-rs/cargo@v1
with:
command: test
- name: Build release
uses: actions-rs/cargo@v1
if: startsWith(github.ref, 'refs/tags/')
env:
RUSTFLAGS: -C target-feature=+crt-static
with:
command: build
args: --release
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: target/release/cloudlog-adifwatch.exe