update action

This commit is contained in:
2024-11-06 17:43:36 +08:00
parent ae80715db1
commit b08b5d0abe

View File

@@ -4,7 +4,7 @@ on:
workflow_dispatch: {} workflow_dispatch: {}
jobs: jobs:
Build_MacOS: Build_MacOS:
runs-on: macos-13 runs-on: macos-15
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: subosito/flutter-action@v2 - uses: subosito/flutter-action@v2
@@ -12,7 +12,7 @@ jobs:
channel: "stable" channel: "stable"
flutter-version-file: pubspec.yaml flutter-version-file: pubspec.yaml
architecture: x64 architecture: x64
- run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app - run: sudo xcode-select --switch /Applications/Xcode_16.0.app
- run: flutter pub get - run: flutter pub get
# Step 1: Decode and install the certificate # Step 1: Decode and install the certificate
- name: Decode and install certificate - name: Decode and install certificate
@@ -38,12 +38,12 @@ jobs:
# Step 4: Attach and upload artifacts (optional) # Step 4: Attach and upload artifacts (optional)
- name: Upload DMG - name: Upload DMG
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: venera.dmg name: venera.dmg
path: dist/venera.dmg path: dist/venera.dmg
Build_IOS: Build_IOS:
runs-on: macos-13 runs-on: macos-15
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: subosito/flutter-action@v2 - uses: subosito/flutter-action@v2
@@ -51,7 +51,7 @@ jobs:
channel: "stable" channel: "stable"
flutter-version-file: pubspec.yaml flutter-version-file: pubspec.yaml
architecture: x64 architecture: x64
- run: sudo xcode-select --switch /Applications/Xcode_14.3.1.app - run: sudo xcode-select --switch /Applications/Xcode_16.0.app
- run: flutter pub get - run: flutter pub get
- run: flutter build ios --release --no-codesign - run: flutter build ios --release --no-codesign
- run: | - run: |