CI #5
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
name: CI | |
on: 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 bassflac24.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 bassflac24.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 Test Version" | |
path: build\windows\x64\runner\Release\* |