This commit is contained in:
107
.gitea/workflows/build.yaml
Normal file
107
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,107 @@
|
|||||||
|
name: Build CI
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
AMD64:
|
||||||
|
name: Build
|
||||||
|
runs-on: linux-amd64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
channel: master
|
||||||
|
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildx-cache
|
||||||
|
key: ${{ runner.os }}-buildx-${{ gitea.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-buildx-
|
||||||
|
|
||||||
|
- name: Install Framework Dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update -y
|
||||||
|
sudo apt install -y ninja-build cmake clang libgtk-3-dev
|
||||||
|
|
||||||
|
- name: Install Flutter
|
||||||
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
channel: master
|
||||||
|
flutter-version: 3.38.9
|
||||||
|
|
||||||
|
- name: Check Flutter Installation
|
||||||
|
run: flutter doctor -v
|
||||||
|
|
||||||
|
- name: Get Project Dependencies
|
||||||
|
run: flutter pub get
|
||||||
|
|
||||||
|
# - name: Analyze project
|
||||||
|
# run: flutter analyze
|
||||||
|
|
||||||
|
# - name: Test project
|
||||||
|
# run: flutter test
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: flutter build linux
|
||||||
|
|
||||||
|
- name: Copy Build Files
|
||||||
|
run: cp -r build/linux/*/release/bundle prod/
|
||||||
|
|
||||||
|
- name: Save Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: PROD.amd64
|
||||||
|
path: prod/
|
||||||
|
|
||||||
|
ARM64:
|
||||||
|
name: Build
|
||||||
|
runs-on: linux-arm64
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
channel: master
|
||||||
|
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: /tmp/.buildx-cache
|
||||||
|
key: ${{ runner.os }}-buildx-${{ gitea.sha }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-buildx-
|
||||||
|
|
||||||
|
- name: Install Framework Dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update -y
|
||||||
|
sudo apt install -y ninja-build cmake clang libgtk-3-dev
|
||||||
|
|
||||||
|
- name: Install Flutter
|
||||||
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
channel: master
|
||||||
|
flutter-version: 3.38.9
|
||||||
|
|
||||||
|
- name: Check Flutter Installation
|
||||||
|
run: flutter doctor -v
|
||||||
|
|
||||||
|
- name: Get Project Dependencies
|
||||||
|
run: flutter pub get
|
||||||
|
|
||||||
|
# - name: Analyze project
|
||||||
|
# run: flutter analyze
|
||||||
|
|
||||||
|
# - name: Test project
|
||||||
|
# run: flutter test
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: flutter build linux
|
||||||
|
|
||||||
|
- name: Copy Build Files
|
||||||
|
run: cp -r build/linux/*/release/bundle prod/
|
||||||
|
|
||||||
|
- name: Save Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: PROD.arm64
|
||||||
|
path: prod/
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
name: Build CI
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: Build
|
|
||||||
runs-on: linux-amd64
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
channel: master
|
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /tmp/.buildx-cache
|
|
||||||
key: ${{ runner.os }}-buildx-${{ gitea.sha }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-buildx-
|
|
||||||
|
|
||||||
- name: Install Framework Dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -y
|
|
||||||
sudo apt install -y ninja-build cmake clang libgtk-3-dev
|
|
||||||
|
|
||||||
- name: Install Flutter
|
|
||||||
uses: subosito/flutter-action@v2
|
|
||||||
with:
|
|
||||||
channel: master
|
|
||||||
flutter-version: 3.38.9
|
|
||||||
|
|
||||||
- name: Check Flutter Installation
|
|
||||||
run: flutter doctor -v
|
|
||||||
|
|
||||||
- name: Get Project Dependencies
|
|
||||||
run: flutter pub get
|
|
||||||
|
|
||||||
# - name: Analyze project
|
|
||||||
# run: flutter analyze
|
|
||||||
|
|
||||||
# - name: Test project
|
|
||||||
# run: flutter test
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: flutter build linux
|
|
||||||
|
|
||||||
- name: Save Artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: PROD.amd64
|
|
||||||
path: build/linux/*/release/bundle/
|
|
||||||
Reference in New Issue
Block a user