chore: bump version to 1.32.0-beat.3 #283
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| # Sequence of patterns matched against refs/tags | |
| tags: | |
| - v*.*.* # Push events to v1.0, v1.1, and v1.9 tags | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [windows-latest, macos-14, macos-13] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.29.2' | |
| channel: 'stable' | |
| - run: dart pub global activate fastforge | |
| - run: flutter pub get | |
| - if: matrix.os == 'macos-14' | |
| run: | | |
| VERSION=${GITHUB_REF_NAME#v} | |
| echo Version: $VERSION | |
| echo "VERSION=$VERSION" >> $GITHUB_ENV | |
| npm install -g appdmg | |
| dart run scripts/init.dart -a 'arm64' -s ${{ secrets.GITHUB_TOKEN }} | |
| fastforge release --name ${{ matrix.os }} | |
| mv dist/${VERSION}/lux-${VERSION}-macos.dmg dist/${VERSION}/lux-${VERSION}-arm64-macos.dmg | |
| - if: matrix.os == 'macos-13' | |
| run: | | |
| VERSION=${GITHUB_REF_NAME#v} | |
| echo Version: $VERSION | |
| echo "VERSION=$VERSION" >> $GITHUB_ENV | |
| npm install -g appdmg | |
| dart run scripts/init.dart -a 'amd64' -s ${{ secrets.GITHUB_TOKEN }} | |
| fastforge release --name ${{ matrix.os }} | |
| mv dist/${VERSION}/lux-${VERSION}-macos.dmg dist/${VERSION}/lux-${VERSION}-amd64-macos.dmg | |
| - if: matrix.os == 'windows-latest' | |
| run: | | |
| mkdir -p C:\temp\dll | |
| cp -Force C:\Windows\System32\msvcp140.dll C:\temp\dll\msvcp140.dll | |
| cp -Force C:\Windows\System32\vcruntime140.dll C:\temp\dll\vcruntime140.dll | |
| cp -Force C:\Windows\System32\vcruntime140_1.dll C:\temp\dll\vcruntime140_1.dll | |
| dart run scripts/init.dart ${{ secrets.GITHUB_TOKEN }} | |
| fastforge release --name ${{ matrix.os }} | |
| Rename-Item -Path "dist\${GITHUB_REF_NAME#v}\lux-${GITHUB_REF_NAME#v}-windows-setup.exe" -NewName "lux-${GITHUB_REF_NAME#v}-windows-x64.exe" | |
| - if: matrix.os == 'windows-11-arm' | |
| run: | | |
| mkdir -p C:\temp\dll | |
| cp -Force C:\Windows\System32\msvcp140.dll C:\temp\dll\msvcp140.dll | |
| cp -Force C:\Windows\System32\vcruntime140.dll C:\temp\dll\vcruntime140.dll | |
| cp -Force C:\Windows\System32\vcruntime140_1.dll C:\temp\dll\vcruntime140_1.dll | |
| dart run scripts/init.dart -a 'arm64' ${{ secrets.GITHUB_TOKEN }} | |
| fastforge release --name ${{ matrix.os }} | |
| Rename-Item -Path "dist\${VERSION}\lux-${VERSION}-windows-setup.exe" -NewName "lux-${VERSION}-windows-arm64.exe" | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.os }}-artifact | |
| path: dist/*/* | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/download-artifact@v4 | |
| - run: | | |
| mkdir artifact | |
| mv windows-latest-artifact/*/* artifact/ | |
| mv windows-11-arm/*/* artifact/ | |
| mv macos-14-artifact/*/* artifact/ | |
| mv macos-13-artifact/*/* artifact/ | |
| - name: Generate checksum | |
| uses: jmgilman/actions-generate-checksum@v1 | |
| with: | |
| patterns: | | |
| artifact/* | |
| - name: GH Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| prerelease: ${{ contains(github.ref, '-beat.') }} | |
| draft: ${{ !contains(github.ref, '-beat.') }} | |
| body_path: CHANGELOG.md | |
| files: | | |
| checksum.txt | |
| artifact/* |