Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f6ca6a1108 |
@@ -40,3 +40,69 @@ jobs:
|
||||
|
||||
- name: Build Linux
|
||||
run: nix develop --command task build-linux-release
|
||||
|
||||
build-macos:
|
||||
name: Build macOS Debug
|
||||
runs-on: macos-latest
|
||||
needs: check
|
||||
if: github.ref == 'refs/heads/main'
|
||||
# Requires a macOS runner labelled 'macos-latest'.
|
||||
# Jobs are skipped automatically when no matching runner is registered.
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install FVM
|
||||
run: dart pub global activate fvm
|
||||
|
||||
- name: Install Flutter via FVM
|
||||
run: |
|
||||
fvm install --skip-pub-get
|
||||
fvm use --skip-pub-get
|
||||
|
||||
- name: Pub get
|
||||
run: fvm flutter pub get --suppress-analytics
|
||||
|
||||
- name: Generate code
|
||||
run: fvm flutter pub run build_runner build
|
||||
|
||||
- name: Generate changelog
|
||||
run: |
|
||||
mkdir -p assets
|
||||
git log -n 50 --pretty=format:"* %ad [%h](https://codeberg.org/guettli/sharedinbox/commit/%H): %s" --date=short > assets/changelog.txt
|
||||
|
||||
- name: Build macOS
|
||||
run: fvm flutter build macos --debug --no-pub
|
||||
|
||||
build-windows:
|
||||
name: Build Windows Debug
|
||||
runs-on: windows-latest
|
||||
needs: check
|
||||
if: github.ref == 'refs/heads/main'
|
||||
# Requires a Windows runner labelled 'windows-latest'.
|
||||
# Jobs are skipped automatically when no matching runner is registered.
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install FVM
|
||||
run: dart pub global activate fvm
|
||||
|
||||
- name: Install Flutter via FVM
|
||||
run: |
|
||||
fvm install --skip-pub-get
|
||||
fvm use --skip-pub-get
|
||||
|
||||
- name: Pub get
|
||||
run: fvm flutter pub get --suppress-analytics
|
||||
|
||||
- name: Generate code
|
||||
run: fvm flutter pub run build_runner build
|
||||
|
||||
- name: Generate changelog
|
||||
run: |
|
||||
mkdir -p assets
|
||||
git log -n 50 "--pretty=format:* %ad [%h](https://codeberg.org/guettli/sharedinbox/commit/%H): %s" --date=short > assets/changelog.txt
|
||||
|
||||
- name: Build Windows
|
||||
run: fvm flutter build windows --debug --no-pub
|
||||
|
||||
Reference in New Issue
Block a user