mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-12 14:02:06 +00:00
Building using Github actions (#131)
Change Travis CICD to GitHub Actions
This commit is contained in:
58
.github/workflows/main.yml
vendored
Normal file
58
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
name: Build and deploy JPEXS FFDec
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- dev
|
||||
- master
|
||||
|
||||
env:
|
||||
CICD_REPO_SLUG: jindrapetrik/jpexs-decompiler
|
||||
CICD_REFTYPE: ${{ github.ref_type }}
|
||||
CICD_REFNAME: ${{ github.ref_name }}
|
||||
CICD_COMMIT: ${{ github.sha }}
|
||||
CICD_NAME: GitHub Actions
|
||||
CICD_EMAIL: GitHub
|
||||
CICD_EVENTNAME: ${{ github.event_name }}
|
||||
NIGHTLY_BRANCH: dev
|
||||
GITHUB_USER: jindrapetrik
|
||||
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
container: debian:sid
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Set up JDK 1.8
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 8
|
||||
distribution: temurin
|
||||
- name: Set up PHP
|
||||
run: |
|
||||
apt update -y -qq
|
||||
apt install -y -qq php
|
||||
- name: Set up NSis
|
||||
run: |
|
||||
bash -c 'echo "deb http://ftp.debian.org/debian unstable main contrib non-free" >> /etc/apt/sources.list.d/unstable.list'
|
||||
apt-get -y update
|
||||
apt-get -y install -t unstable nsis
|
||||
makensis -VERSION
|
||||
- name: Set up ant
|
||||
run: |
|
||||
apt install -y -qq ant
|
||||
- name: Build
|
||||
run: |
|
||||
export CICD_TEMP=${{ runner.temp }}
|
||||
chmod a+x ./cicd_scripts/*.sh
|
||||
./cicd_scripts/before_install.sh
|
||||
./cicd_scripts/install.sh
|
||||
./cicd_scripts/script.sh
|
||||
Reference in New Issue
Block a user