-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from YaeSakuraQvQ/main
Create windows_ci.yml
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Windows CI | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.22.0' | ||
|
||
- name: Get dependencies | ||
run: flutter pub get | ||
|
||
- name: Build Windows | ||
run: flutter build windows | ||
|
||
- name: Download dll | ||
run: | | ||
mkdir -p build\tmp | ||
# mkdir -p build\windows\x64\runner\Release\BASS | ||
# download BASS add-ons from UN4SEEN | ||
curl -o bass.zip https://www.un4seen.com/files/bass24.zip | ||
# curl -o bassape24.zip https://www.un4seen.com/files/bassape24.zip | ||
# curl -o bassdsd24.zip https://www.un4seen.com/files/bassdsd24.zip | ||
curl -o bassflac.zip https://www.un4seen.com/files/bassflac24.zip | ||
# curl -o bassmidi24.zip https://www.un4seen.com/files/bassmidi24.zip | ||
# curl -o bassopus24.zip https://www.un4seen.com/files/bassopus24.zip | ||
# curl -o basswv24.zip https://www.un4seen.com/files/basswv24.zip | ||
Expand-Archive -Path bass.zip -DestinationPath build\tmp -Force | ||
# Expand-Archive -Path bassape24.zip -DestinationPath build\tmp -Force | ||
# Expand-Archive -Path bassdsd24.zip -DestinationPath build\tmp -Force | ||
Expand-Archive -Path bassflac.zip -DestinationPath build\tmp -Force | ||
# Expand-Archive -Path bassmidi24.zip -DestinationPath build\tmp -Force | ||
# Expand-Archive -Path bassopus24.zip -DestinationPath build\tmp -Force | ||
# Expand-Archive -Path basswv24.zip -DestinationPath build\tmp -Force | ||
mv build\tmp\x64\* build\windows\x64\runner\Release\ | ||
# mv build\tmp\x64\* build\windows\x64\runner\Release\BASS\ | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: "Coriander Player CI" | ||
path: build\windows\x64\runner\Release\* |