2022-12-02 23:07:33 -08:00
|
|
|
name: Build and Release Windows
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v*"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_win:
|
|
|
|
runs-on: windows-2019
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: wget
|
|
|
|
run: |
|
|
|
|
mkdir /d/.zcash-params
|
|
|
|
curl https://download.z.cash/downloads/sapling-output.params --output /d/.zcash-params/sapling-output.params
|
|
|
|
curl https://download.z.cash/downloads/sapling-spend.params --output /d/.zcash-params/sapling-spend.params
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: ls
|
|
|
|
run: dir d:\.zcash-params
|
|
|
|
|
|
|
|
- name: Build dll
|
|
|
|
run: powershell -file build-win.ps1
|
|
|
|
env:
|
|
|
|
HOME: "D:\\"
|
|
|
|
|
|
|
|
- name: Flutter app
|
|
|
|
run: docker build -f docker/Dockerfile-win -t app_image .
|
|
|
|
|
|
|
|
- name: Copy zip
|
|
|
|
run: |
|
|
|
|
docker create --name app_container app_image
|
|
|
|
docker cp app_container:/zwallet/ywallet.zip .
|
2022-12-14 00:24:31 -08:00
|
|
|
docker cp app_container:/zwallet/Ywallet.msix .
|
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
|