Add 'Hide' action to multiselect overflow menu #464
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: Build [Windows] | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
types: [opened, synchronize, reopened, ready_for_review] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
if: ${{ github.event.pull_request.draft == false && (github.event_name == 'workflow_dispatch' || !contains(github.event.head_commit.message, 'noci')) }} | |
env: | |
PACKAGE_JAVA_LIBRARY_PATH: ./app/resources | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up JDKs | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: | | |
22 | |
21 | |
- name: Set PACKAGE_JAVA_HOME | |
run: | | |
chcp 65001 | |
echo ("PACKAGE_JAVA_HOME=" + $env:JAVA_HOME_22_X64) >> $env:GITHUB_ENV | |
- name: Download mpv | |
run: curl -L https://downloads.sourceforge.net/project/mpv-player-windows/libmpv/mpv-dev-x86_64-20240114-git-bd35dc8.7z --output mpv.7z | |
- name: Extract mpv | |
shell: bash | |
run: | | |
"/c/Program Files/7-Zip/7z.exe" x mpv.7z -o"mpv" | |
- name: Copy libmpv-2.dll | |
run: xcopy /s /i /y "${{ github.workspace }}\mpv\libmpv-2.dll" "${{ github.workspace }}\desktopApp\build\package\windows\mpv.dll*" | |
- run: dir desktopApp\build\package\windows | |
- name: Set up Gradle | |
uses: gradle/gradle-build-action@v3 | |
- name: Build zip and exe | |
run: .\gradlew.bat desktopApp:packageReleaseZip desktopApp:packageReleaseExe -PGIT_TAG_OVERRIDE="v0.4.0" | |
- name: Upload zip artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: spmp-windows-release-zip | |
path: desktopApp/build/outputs/*.zip | |
- name: Upload exe artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: spmp-windows-release-exe | |
path: desktopApp/build/compose/binaries/main-release/exe/*.exe | |
# - name: Rename output files | |
# run: | | |
# mv desktopApp/build/outputs/*.zip desktopApp/build/outputs/spmp-nightly-windows-x86_64-standalone.zip | |
# mv desktopApp/build/compose/binaries/main-release/exe/*.exe desktopApp/build/compose/binaries/main-release/exe/spmp-nightly-windows-x86_64-installer.exe | |
# - name: Get current date and time | |
# id: date | |
# run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S')" | |
# - name: Update nightly release | |
# uses: mini-bomba/create-github-release@v1.1.3 | |
# if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' | |
# with: | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# tag: nightly-latest | |
# name: Nightly ${{ steps.date.outputs.date }} | |
# files: desktopApp/build/outputs/spmp-nightly-windows-x86_64-standalone.zip desktopApp/build/compose/binaries/main-release/exe/spmp-nightly-windows-x86_64-installer.exe | |
# clear_attachments: false | |