Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable

- name: Cache Flutter
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: app/.flutter
key: ${{ runner.os }}-flutter-${{ hashFiles('app/flutter', 'app/pubspec.lock') }}
Expand All @@ -56,7 +56,7 @@ jobs:

- name: Upload AppImage artifact
if: github.event_name != 'release'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: stride-appimage
path: ${{ steps.appimage.outputs.artifact }}
Expand Down Expand Up @@ -104,15 +104,15 @@ jobs:
$GITHUB_PATH

- name: Cache Flutter pub
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: |
~/.pub-cache
**/.dart_tool
key: ${{ runner.os }}-pub-${{ hashFiles('**/pubspec.lock') }}

- name: Cache Gradle
uses: actions/cache@v4
uses: actions/cache@v6
with:
path: |
~/.gradle/caches
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:

- name: Upload artifacts (workflow run)
if: github.event_name != 'release'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: stride-artifacts
path: |
Expand Down Expand Up @@ -245,17 +245,30 @@ jobs:
--repo "$REPOSITORY" \
--target "$GITHUB_SHA" \
--prerelease \
--title "Development" \
--title "development" \
--notes "Development build from $REPOSITORY@$GITHUB_SHA."
else
gh release create development \
--repo "$REPOSITORY" \
--target "$GITHUB_SHA" \
--prerelease \
--title "Development" \
--title "development" \
--notes "Development build from $REPOSITORY@$GITHUB_SHA."
fi

# Delete existing assets from the development release before uploading new ones.
mapfile -t existing_assets < <(
gh release view development \
--repo "$REPOSITORY" \
--json assets \
--jq '.assets[].name'
)
for asset in "${existing_assets[@]}"; do
gh release delete-asset development "$asset" \
--repo "$REPOSITORY" \
--yes
done

mapfile -t artifacts < <(
find development-artifacts -type f -print
)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: cargo run --manifest-path tools/page_generator/Cargo.toml -- --api-dir ./api --assets-dir ./assets --output-dir ./site

- name: Configure GitHub Pages
uses: actions/configure-pages@v5
uses: actions/configure-pages@v6

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
Expand All @@ -51,7 +51,7 @@ jobs:

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5

rust-lint:
name: Rust Format & Lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
version_code() {
local file="$1"
local version
version="$(sed -nE 's/^version:[[:space:]]*[0-9]+\.[0-9]+\.[0-9]+\+([0-9]+)[[:space:]]*$/\1/p' "$file")"
version="$(sed -nE 's/^version:[[:space:]]*[^+[:space:]]+\+([0-9]+)[[:space:]]*$/\1/p' "$file")"
if [[ ! "$version" =~ ^[0-9]+$ ]]; then
echo "Unable to read an integer version code from $file" >&2
exit 1
Expand Down
Loading
Loading