This repository has been archived by the owner on Jan 8, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
56 lines (48 loc) · 1.56 KB
/
linux.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Linux-CI
on:
push:
branches:
- master
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Branch name
id: branch_name
run: |
echo ::set-output name=SOURCE_NAME::${GITHUB_REF#refs/*/}
echo ::set-output name=SOURCE_BRANCH::${GITHUB_REF#refs/heads/}
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- uses: actions/setup-java@v1
with:
java-version: "8.x"
- uses: subosito/flutter-action@v1
with:
channel: "dev"
- name: Change flutter channel to master, enable linux support
run: |
flutter channel master
flutter upgrade
flutter config --enable-linux-desktop
flutter pub get
- name: Build linux
run: |
flutter build linux
- name: Debug
run: |
sudo npm install tree-node-cli -g
treee build
- name: Prepare release files
run: |
cp -r build/linux/release flutter_ui_challenges-linux-${{ steps.branch_name.outputs.SOURCE_NAME }}
zip flutter_ui_challenges-linux-${{ steps.branch_name.outputs.SOURCE_NAME }}.zip -r flutter_ui_challenges-linux-${{ steps.branch_name.outputs.SOURCE_NAME }}
- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: flutter_ui_challenges-linux-${{ steps.branch_name.outputs.SOURCE_NAME }}.zip
tags: true
draft: false