Surface/.github/workflows/nightly.yml

64 lines
1.7 KiB
YAML
Raw Normal View History

2024-11-10 17:26:58 +08:00
name: release-nightly
on:
push:
branches: [master]
jobs:
build-web:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
2024-11-11 00:00:49 +08:00
channel: stable
2024-11-10 17:26:58 +08:00
cache: true
- run: flutter pub get
- run: flutter build web --release
2024-11-10 17:26:58 +08:00
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: build-output-web
path: build/web
build-exe:
runs-on: windows-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: flutter pub get
- run: flutter build windows
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: build-output-windows
2025-02-15 13:39:00 +08:00
path: build/windows/x64/runner/Release
build-linux:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
sudo apt-get install libmpv-dev mpv
sudo apt-get install libayatana-appindicator3-dev
2025-02-15 13:43:21 +08:00
sudo apt-get install keybinder-3.0
2025-02-15 13:39:00 +08:00
- run: flutter pub get
- run: flutter build linux
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
2025-02-15 13:48:25 +08:00
name: build-output-linux
path: build/linux/x64/release/bundle