Skip to content

Commit f75a9f8

Browse files
Merge branch 'develop' into patch-10
2 parents 8911d6f + b49daeb commit f75a9f8

1,980 files changed

Lines changed: 327527 additions & 21240 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 149 additions & 87 deletions
Large diffs are not rendered by default.

.github/workflows/compress-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
compressOnly: true
2121
- name: Create New Pull Request If Needed
2222
if: steps.calibre.outputs.markdown != ''
23-
uses: peter-evans/create-pull-request@v7
23+
uses: peter-evans/create-pull-request@v8
2424
with:
2525
title: Compressed Images Nightly
2626
branch-suffix: timestamp

.github/workflows/dart.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ jobs:
1414
steps:
1515
- name: ⬆️ Checkout
1616
uses: actions/checkout@v6
17-
- uses: subosito/flutter-action@v2.21.0
17+
- uses: subosito/flutter-action@v2.23.0
1818
with:
1919
flutter-version-file: app/pubspec.yaml
2020
cache: true
21-
- uses: actions/checkout@v6
2221
- name: Print Dart SDK version
2322
run: |
2423
dart --version
@@ -46,8 +45,9 @@ jobs:
4645
run: dart format .
4746
- name: Test for git changes
4847
run: git diff --exit-code
49-
# Your project will need to have tests in test/ and a dependency on
50-
# package:test for this step to succeed. Note that Flutter projects will
51-
# want to change this to 'flutter test'.
52-
# - name: Run tests
53-
# run: flutter test
48+
- name: Run Flutter tests
49+
if: matrix.projects == 'app'
50+
run: flutter test
51+
- name: Run Dart tests
52+
if: matrix.projects == 'api'
53+
run: dart test

.github/workflows/deploy.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v6
1818
- name: Install pnpm
19-
uses: pnpm/action-setup@v4
19+
uses: pnpm/action-setup@v6
2020
with:
2121
package_json_file: docs/package.json
2222
- name: Use Node.js
2323
uses: actions/setup-node@v6
2424
with:
25-
node-version: 24
25+
node-version: 26
2626
cache: "pnpm"
2727
cache-dependency-path: docs/pnpm-lock.yaml
2828
- name: Install dependencies
@@ -50,20 +50,28 @@ jobs:
5050
steps:
5151
- name: ⬆️ Checkout
5252
uses: actions/checkout@v6
53-
- uses: subosito/flutter-action@v2.21.0
53+
- uses: subosito/flutter-action@v2.23.0
5454
with:
5555
flutter-version-file: app/pubspec.yaml
5656
cache: true
5757
- name: Install dependencies
5858
run: |
5959
flutter pub get
60+
- name: Install OneNote web toolchain
61+
run: |
62+
rustup toolchain install nightly --component rust-src
63+
cargo install wasm-pack --locked
64+
- name: Build OneNote web library
65+
working-directory: .
66+
run: dart run tools/build_onenote_web.dart
6067
- name: Get Git Commit Hash
6168
run: echo "GIT_HASH=$(git rev-parse HEAD)" >> $GITHUB_ENV
6269
- name: Set flavor
6370
if: github.ref != 'refs/heads/main'
6471
run: |
6572
echo "SETONIX_FLAVOR=nightly" >> $GITHUB_ENV
6673
echo "WEB_DIR=preview" >> $GITHUB_ENV
74+
cp -rf web_nightly/* web/
6775
- name: Set flavor
6876
if: github.ref == 'refs/heads/main'
6977
run: |

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
token: ${{ secrets.CI_PAT }}
2323
fetch-depth: 0
24-
- uses: subosito/flutter-action@v2.21.0
24+
- uses: subosito/flutter-action@v2.23.0
2525
with:
2626
flutter-version-file: app/pubspec.yaml
2727
cache: true
@@ -66,7 +66,7 @@ jobs:
6666
token: ${{ secrets.CI_PAT }}
6767
ref: ${{ github.ref }}
6868
fetch-depth: 0
69-
- uses: subosito/flutter-action@v2.21.0
69+
- uses: subosito/flutter-action@v2.23.0
7070
with:
7171
flutter-version-file: app/pubspec.yaml
7272
cache: true
@@ -90,7 +90,7 @@ jobs:
9090
git tag -fa v${{ env.BUTTERFLY_VERSION }} -m "Release ${BUTTERFLY_VERSION}"
9191
git push origin v${BUTTERFLY_VERSION} -f
9292
- name: Create release
93-
uses: softprops/action-gh-release@v2
93+
uses: softprops/action-gh-release@v3
9494
with:
9595
prerelease: ${{ github.event.inputs.stable != 'true' }}
9696
tag_name: v${{ env.BUTTERFLY_VERSION }}
@@ -125,7 +125,7 @@ jobs:
125125
with:
126126
token: ${{ secrets.CI_PAT }}
127127
fetch-depth: 0
128-
- uses: subosito/flutter-action@v2.21.0
128+
- uses: subosito/flutter-action@v2.23.0
129129
with:
130130
flutter-version-file: app/pubspec.yaml
131131
cache: true
@@ -189,7 +189,7 @@ jobs:
189189
echo "BUTTERFLY_BUILD_NUMBER=${BUTTERFLY_BUILD_NUMBER}" >> $GITHUB_ENV
190190
git config --global user.email "ci@linwood.dev"
191191
git config --global user.name "Linwood CI"
192-
- uses: subosito/flutter-action@v2.21.0
192+
- uses: subosito/flutter-action@v2.23.0
193193
with:
194194
flutter-version-file: app/pubspec.yaml
195195
cache: true
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Update Screenshots
2+
3+
on:
4+
workflow_dispatch:
5+
#schedule:
6+
# - cron: "00 22 * * 0"
7+
# disabled because of
8+
# Failed to load "/home/runner/work/Butterfly/Butterfly/app/integration_test/screenshot.dart": Unable to start the app on the device.
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
jobs:
14+
update-screenshots:
15+
runs-on: ubuntu-24.04
16+
steps:
17+
- name: Checkout repo
18+
uses: actions/checkout@v6
19+
20+
- name: Install Linux Flutter dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install -y clang cmake libgtk-3-dev liblzma-dev ninja-build pkg-config libsecret-1-dev libjsoncpp-dev
24+
25+
- name: Setup Flutter
26+
uses: subosito/flutter-action@v2.23.0
27+
with:
28+
flutter-version-file: app/pubspec.yaml
29+
cache: true
30+
31+
- name: Install app dependencies
32+
working-directory: app
33+
run: flutter pub get
34+
35+
- name: Install tools dependencies
36+
working-directory: tools
37+
run: dart pub get
38+
39+
- name: Generate screenshots
40+
run: dart tools/screenshot.dart
41+
42+
- name: Compress generated screenshots
43+
id: calibre
44+
uses: calibreapp/image-actions@main
45+
with:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
compressOnly: true
48+
49+
- name: Create screenshot update pull request
50+
uses: peter-evans/create-pull-request@v8
51+
with:
52+
title: Update screenshots
53+
branch: automation/update-screenshots
54+
delete-branch: true
55+
commit-message: Update screenshots
56+
add-paths: |
57+
metadata/en-US/images
58+
body: |
59+
Regenerated and compressed screenshots.
60+
61+
${{ steps.calibre.outputs.markdown }}

0 commit comments

Comments
 (0)