43 lines
918 B
YAML
43 lines
918 B
YAML
name: Build and Release Windows
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
jobs:
|
|
build_win:
|
|
runs-on: windows-2022
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: env
|
|
run: |
|
|
type build.env >> $env:GITHUB_ENV
|
|
echo 'D:\flutter\bin' >> $env:GITHUB_PATH
|
|
echo $env:GITHUB_PATH
|
|
|
|
- name: build 1/3
|
|
shell: bash
|
|
run: ./build-scripts/build-win1.sh "${{ env.FLUTTER_VERSION }}"
|
|
|
|
- name: build 2/3
|
|
run: cargo b -r --features=dart_ffi,sqlcipher,ledger
|
|
env:
|
|
HOME: 'D:\'
|
|
|
|
- name: build 3/3
|
|
shell: bash
|
|
run: ./build-scripts/build-win2.sh
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
if: startsWith(github.ref, 'refs/tags/v')
|
|
with:
|
|
files: |
|
|
./ywallet.zip
|
|
./YWallet.msix
|