mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2026-01-15 16:22:32 +01:00
74 lines
1.8 KiB
YAML
74 lines
1.8 KiB
YAML
# This is a basic workflow to help you get started with Actions
|
|
|
|
name: CI
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
BuildBinaries:
|
|
name: Build application packages
|
|
strategy:
|
|
matrix:
|
|
runtime: [ linux-x64, osx-x64, win-x64 ]
|
|
include:
|
|
- runtime: linux-x64
|
|
arch: x64
|
|
os: ubuntu-latest
|
|
shell: bash
|
|
buildPackage: ./scripts/BuildLinuxDeb.sh
|
|
buildJar: ./scripts/BuildUnixJar.sh
|
|
|
|
- runtime: osx-x64
|
|
arch: x64
|
|
os: macOS-latest
|
|
shell: bash
|
|
buildPackage: ./scripts/BuildMacPkg.sh
|
|
buildJar: ./scripts/BuildUnixJar.sh
|
|
|
|
- runtime: win-x64
|
|
arch: x64
|
|
os: windows-latest
|
|
shell: powershell
|
|
buildPackage: ./scripts/BuildWindowsMsi.ps1
|
|
buildJar: ./scripts/BuildWindowsJar.ps1
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
defaults:
|
|
run:
|
|
shell: ${{ matrix.shell }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-java@v1
|
|
with:
|
|
java-version: '15'
|
|
architecture: ${{ matrix.arch }}
|
|
|
|
- name: Build Package
|
|
run: ${{ matrix.buildPackage }}
|
|
|
|
- name: Build Jar
|
|
run: ${{ matrix.buildJar }}
|
|
|
|
# Upload runner package tar.gz/zip as artifact
|
|
- name: Publish Artifact
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: runner-package-${{ matrix.runtime }}
|
|
path: build/compose
|
|
ReleaseBinaries:
|
|
name: Make a release
|
|
needs: [BuildBinaries]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Download Build Artifacts
|
|
uses: actions/download-artifact@v2
|
|
|
|
- uses: ncipollo/release-action@v1
|
|
with:
|
|
artifacts: "*/binaries/main/*/*.*,*/jars/*.*"
|
|
draft: true
|
|
token: ${{ secrets.GITHUB_TOKEN }} |