mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Create test build action
This commit is contained in:
77
.github/workflows/Build.yml
vendored
Normal file
77
.github/workflows/Build.yml
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
# This is a basic workflow to help you get started with Actions
|
||||
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
tags:
|
||||
- v*
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build application packages
|
||||
strategy:
|
||||
matrix:
|
||||
runtime: [ linux-x64, linux-x86, osx-x64, osx-x86, win-x64, win-x86 ]
|
||||
include:
|
||||
- runtime: linux-x64
|
||||
arch: x64
|
||||
os: ubuntu-latest
|
||||
buildPackage: ./scripts/BuildLinuxDeb.sh
|
||||
buildJar: ./scripts/BuildUnixJar.sh
|
||||
|
||||
- runtime: linux-x86
|
||||
arch: x86
|
||||
os: ubuntu-latest
|
||||
buildPackage: ./scripts/BuildLinuxDeb.sh
|
||||
buildJar: ./scripts/BuildUnixJar.sh
|
||||
|
||||
- runtime: osx-x64
|
||||
arch: x64
|
||||
os: macOS-latest
|
||||
buildPackage: ./scripts/BuildMacPkg.sh
|
||||
buildJar: ./scripts/BuildUnixJar.sh
|
||||
|
||||
- runtime: osx-x86
|
||||
arch: x86
|
||||
os: macOS-latest
|
||||
buildPackage: ./scripts/BuildMacPkg.sh
|
||||
buildJar: ./scripts/BuildUnixJar.sh
|
||||
|
||||
- runtime: win-x64
|
||||
arch: x64
|
||||
os: windows-latest
|
||||
buildPackage: \&"./scripts/BuildWindowsMsi.ps1"
|
||||
buildJar: \&"./scripts/BuildWindowsJar.ps1"
|
||||
|
||||
- runtime: win-x86
|
||||
arch: x86
|
||||
os: windows-latest
|
||||
buildPackage: \&"./scripts/BuildWindowsMsi.ps1"
|
||||
buildJar: \&"./scripts/BuildWindowsJar.ps1"
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: '15'
|
||||
architecture: ${{ matrix.arch }}
|
||||
|
||||
# Build runner layout
|
||||
- name: Build Package
|
||||
run: ${{ matrix.buildPackage }}
|
||||
|
||||
# Create runner package tar.gz/zip
|
||||
- name: Package Release
|
||||
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
|
||||
Reference in New Issue
Block a user