zwallet/.github/workflows/build-win.yml

43 lines
911 B
YAML
Raw Normal View History

2022-12-02 23:07:33 -08:00
name: Build and Release Windows
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
build_win:
2023-02-11 03:26:29 -08:00
runs-on: windows-2022
2022-12-02 23:07:33 -08:00
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
2023-02-11 03:26:29 -08:00
- name: env
2022-12-02 23:07:33 -08:00
run: |
2023-02-11 03:26:29 -08:00
type build.env >> $env:GITHUB_ENV
2023-03-06 22:09:06 -08:00
echo 'D:\flutter\bin' >> $env:GITHUB_PATH
echo $env:GITHUB_PATH
2023-02-11 03:26:29 -08:00
2023-03-06 22:09:06 -08:00
- name: build 1/3
2023-02-11 03:26:29 -08:00
shell: bash
2023-03-06 22:09:06 -08:00
run: ./build-scripts/build-win1.sh "${{ env.FLUTTER_VERSION }}"
- name: build 2/3
run: cargo b -r --features=dart_ffi,sqlcipher
env:
HOME: 'D:\'
- name: build 3/3
shell: bash
run: ./build-scripts/build-win2.sh
2022-12-02 23:07:33 -08:00
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: |
./ywallet.zip
2022-12-14 00:24:31 -08:00
./YWallet.msix