-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (38 loc) · 1.36 KB
/
build_windows.yml
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
name: Build executables (Windows)
on:
workflow_call:
inputs:
postfix:
required: true
type: string
jobs:
build_windows:
runs-on: windows-latest
# needs:
# - test_heavy_windows
env:
MACHINE_OS: windows
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2.8.0
with:
channel: 'stable'
- name: Doctor
run: flutter doctor -v
- name: Install Dependencies
run: |
flutter config --enable-windows-desktop
flutter packages get
- name: Build release
run: |
flutter build -v ${{ env.MACHINE_OS }} --release
- name: Copy essentials to Windows artifacs (Release)
run: |
cp -Path ${{ github.workspace }}/build_dependencies/windows/* ${{ github.workspace }}/build/windows/runner/Release/
mkdir ${{ github.workspace }}/build/windows/runner/minecraft_cube_desktop/minecraft_cube_desktop
mv -Path ${{ github.workspace }}/build/windows/runner/Release/* ${{ github.workspace }}/build/windows/runner/minecraft_cube_desktop/minecraft_cube_desktop
- name: Upload Windows artifaces (Release)
uses: actions/upload-artifact@v3
with:
name: windows-release-${{ inputs.postfix }}
path: ${{ github.workspace }}/build/windows/runner/minecraft_cube_desktop