Skip to content

Update dependencies #55

Update dependencies

Update dependencies #55

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