47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
name: Build CI
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
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
|
|
|
|
- name: Install Flutter
|
|
uses: subosito/flutter-action@v2
|
|
with:
|
|
channel: master
|
|
flutter-version: 3.38.9
|
|
|
|
- name: Get Project Dependencies
|
|
run: flutter pub get
|
|
|
|
# - name: Analyze project
|
|
# run: flutter analyze
|
|
|
|
# - name: Test project
|
|
# run: flutter test
|
|
|
|
# - name: Build x64
|
|
# run: flutter build linux --target-platform linux-x64
|
|
|
|
- name: Build arm64
|
|
run: flutter build linux --target-platform linux-arm64
|