39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
# Mostly copied from https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant
|
|
# zlatinb
|
|
|
|
name: Java CI
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
- name: install wsl
|
|
run: wsl --install
|
|
- name: change config
|
|
run: |
|
|
bash -c "echo VERSIONMAJOR=2 >> config.sh"
|
|
bash -c "echo VERSIONMINOR=0 >> config.sh"
|
|
bash -c "echo VERSIONBUILD=0 >> config.sh"
|
|
bash -c "echo I2P_VERSION=2.0.0 >> config.sh"
|
|
bash -c "echo export I2P_VERSION=2.0.0 >> config.sh"
|
|
bash -c "echo VERSION=master >> config.sh"
|
|
bash -c "echo export VERSION=master >> config.sh"
|
|
- name: build with script
|
|
run: bash -c "./buildscripts/exe.sh; ls *.exe"
|
|
- name: Upload I2P-Easy-Install-Bundle-${{ github.sha }}-unsigned.exe
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: I2P-Easy-Install-Bundle-${{ github.sha }}-unsigned.exe
|
|
path: I2P-Easy-Install-Bundle-2.4.0-unsigned.exe
|
|
|
|
|