Files
jpexs-decompiler/.github/workflows/main.yml
Jindra Petřík 1c3aca7cd2 try exe
2026-02-03 23:19:43 +01:00

109 lines
2.9 KiB
YAML

name: build
on:
push:
tags:
- version*
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: Install Wine
run: |
dpkg --add-architecture i386
apt-get update -y -qq
apt-get install -y -qq wine
wine --version
- name: Init Wine prefix
env:
WINEPREFIX: ${{ github.workspace }}/tools/.wine
WINEDEBUG: "-all"
#WINEARCH: "win32"
run: |
mkdir -p $WINEPREFIX
winecfg
#wineboot -u
- name: Set up JDKs
uses: actions/setup-java@v4
with:
distribution: adopt
architecture: x64
java-version: |
8
21
- name: Set up PHP
run: |
apt-get update -y -qq
apt-get install -y -qq php
- name: Set up NSis
run: |
#apt install -y -qq wget
#we need the specific version - 3.0.8 as this version seems to not be flagged by AVs
#wget http://archive.ubuntu.com/ubuntu/pool/universe/n/nsis/nsis-common_3.08-2_all.deb
#wget http://archive.ubuntu.com/ubuntu/pool/universe/n/nsis/nsis_3.08-2_amd64.deb
#dpkg -i nsis-common_3.08-2_all.deb
#dpkg -i nsis_3.08-2_amd64.deb
apt-get -y update
apt-get -y install nsis
makensis -VERSION
- name: Install Resource Hacker
env:
RH_DIR: ${{ github.workspace }}/tools/resourcehacker
RH_ZIP: ${{ github.workspace }}/tools/resourcehacker.zip
RH_URL: https://www.angusj.com/resourcehacker/resource_hacker.zip
run: |
set -euxo pipefail
apt-get install -y -qq unzip wget
mkdir -p "$(dirname "$RH_ZIP")"
mkdir -p "$RH_DIR"
wget -O "$RH_ZIP" "$RH_URL"
unzip -o "$RH_ZIP" -d "$RH_DIR"
# find exe (sometimes it's in subfolder)
find "$RH_DIR" -maxdepth 3 -type f -iname "ResourceHacker.exe" -print
- name: Set up ant
run: |
apt-get install -y -qq ant
- name: Build
env:
WINEPREFIX: ${{ github.workspace }}/tools/.wine
WINEDEBUG: "-all"
run: |
ant exe
#export CICD_TEMP=${{ github.workspace }}
#chmod a+x ./cicd_scripts/*.sh
#./cicd_scripts/before_install.sh
#./cicd_scripts/script.sh