-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.31 KB
/
Copy pathbuild.yml
File metadata and controls
52 lines (42 loc) · 1.31 KB
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
43
44
45
46
47
48
49
50
51
52
name: Build
on:
push:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
os: [ "windows-latest", "macos-latest" ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Build (Windows)
if: ${{ runner.os == 'Windows' }}
run: flutter build windows
- name: Create ZIP file (Windows)
if: ${{ runner.os == 'Windows' }}
run: 7z a -tzip wormhole ./build/windows/runner/Release/*
- name: Upload artifact (Windows)
if: ${{ runner.os == 'Windows' }}
uses: actions/upload-artifact@v3.1.2
with:
name: wormhole-windows
path: wormhole.zip
- name: Build (MacOS)
if: ${{ runner.os == 'macOS' }}
run: flutter build macos
- name: Create ZIP file (MacOS)
if: ${{ runner.os == 'macOS' }}
run: 7z a -tzip wormhole ./build/macos/Build/Products/Release/*
- name: Upload artifact (MacOS)
if: ${{ runner.os == 'macOS' }}
uses: actions/upload-artifact@v3.1.2
with:
name: wormhole-macos
path: wormhole.zip