refactor #679
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
on: [push, pull_request] | |
name: CI | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
build-linux: | |
name: Build (Linux) | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 25 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: install dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.0.x" | |
- name: build | |
run: dotnet publish fluXis.Desktop --output ./bin | |
- name: upload build artifacts | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: fluXis-ci-build-linux | |
path: | | |
bin/* | |
!bin/runtimes/osx* | |
!bin/runtimes/win* | |
build-windows: | |
name: Build (Windows) | |
runs-on: windows-2022 | |
timeout-minutes: 25 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: install dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.0.x" | |
- name: build | |
run: dotnet publish fluXis.Desktop --output ./bin | |
- name: upload build artifacts | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: fluXis-ci-build-windows | |
path: | | |
bin/* | |
!bin/runtimes/osx* | |
!bin/runtimes/linux* | |
build-android: | |
name: Build (Android) | |
runs-on: windows-latest | |
timeout-minutes: 25 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: install dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: "8.0.x" | |
- name: Setup Java JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: microsoft | |
java-version: 11.0 | |
- name: Install .NET workloads | |
run: dotnet workload install maui-android | |
- name: build | |
run: dotnet publish fluXis.Android --output ./bin | |
- name: upload build artifacts | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: fluXis-ci-build-android | |
path: bin/moe.flux.fluXis-signed.apk |