Skip to content

Commit

Permalink
Merge pull request #48 from YaeSakuraQvQ/main
Browse files Browse the repository at this point in the history
Create windows_ci.yml
  • Loading branch information
Ferry-200 authored Jun 19, 2024
2 parents 94fb7be + 2f66e3e commit 29d0077
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/windows_ci.yml
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\*

0 comments on commit 29d0077

Please sign in to comment.