48 lines
962 B
YAML
48 lines
962 B
YAML
name: 编译项目
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- t
|
|
paths-ignore:
|
|
- "**/*.md"
|
|
- "**/*.txt"
|
|
- "**/*.png"
|
|
- "**/*.jpg"
|
|
|
|
jobs:
|
|
job1:
|
|
name: 编译
|
|
runs-on: linux
|
|
|
|
container: node:alpine
|
|
|
|
steps:
|
|
- name: 安装基础配件
|
|
run: |
|
|
sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
|
|
apk update
|
|
apk add bash
|
|
apk add jq
|
|
apk add git
|
|
|
|
- name: 下载源码
|
|
uses: actions/checkout@v3
|
|
|
|
- name: 安装java
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: "zulu"
|
|
java-version: 11
|
|
|
|
- name: 安装flutter
|
|
uses: actions/setup-flutter@v2
|
|
with:
|
|
flutter-version: "3.0.1"
|
|
|
|
- name: 打包flutter
|
|
run: |
|
|
cd marking_app
|
|
flutter pub get
|
|
flutter build apk --release --target-platform=android-arm64 --no-tree-shake-icons
|