Skip to content

update script/jinstall.sh #156

update script/jinstall.sh

update script/jinstall.sh #156

Workflow file for this run

name: Install

Check failure on line 1 in .github/workflows/jinstall.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/jinstall.yaml

Invalid workflow file

(Line: 10, Col: 1): Unexpected value 'if'
on:
push:
branches:
- Xmaster
workflow_dispatch:
# remove the following line to run
if: false
jobs:
# install --------------------------------------------------------------
install:
#if: false
name: Installers
runs-on: ubuntu-latest
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Build
run: |
sudo apt-get install -y dos2unix
script/build.sh
- name: Release
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "fbsd64.tar.gz,linux64.tar.gz,mac64.zip,obsd64.tar.gz,raspi32.tar.gz,raspi64.tar.gz,win64.zip,winarm64.zip,build.txt,revision.txt"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
# unix AIO -------------------------------------------------------------
# not needed from Dec 2025
unixaio:
if: false
name: UnixAIO
runs-on: ubuntu-latest
needs: install
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Get files
run: script/build_unix_aio.sh
- name: read build list
run: echo "buildlist=$(cat buildlist.txt)" >> $GITHUB_ENV
- name: Release UnixAIO
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: ${{ env.buildlist }}
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
# windows AIO ----------------------------------------------------------
winaio:
#if: false
name: WinAIO
runs-on: windows-2022
needs: install
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Get revision
uses: dsaltares/fetch-gh-release-asset@master
with:
file: 'revision.txt'
target: 'revision.txt'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Get winzip
uses: dsaltares/fetch-gh-release-asset@master
with:
file: 'win64.zip'
target: 'win64.zip'
token: ${{ secrets.GITHUB_TOKEN }}
- name: List
shell: pwsh
run: dir
- name: Get version
shell: pwsh
run: script\getversion.ps1
- name: Get files
shell: pwsh
run: script\getfiles.ps1 0 0
- name: Build AIO
uses: joncloud/makensis-action@v4.1
- name: Rename build
shell: pwsh
run: script\rename.ps1 0
- name: Release WinAIO
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: win64.exe
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
# windows slim AIO -----------------------------------------------------
winaios:
#if: false
name: WinAIOslim
runs-on: windows-2022
needs: install
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Get revision
uses: dsaltares/fetch-gh-release-asset@master
with:
file: 'revision.txt'
target: 'revision.txt'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Get winzip
uses: dsaltares/fetch-gh-release-asset@master
with:
file: 'win64.zip'
target: 'win64.zip'
token: ${{ secrets.GITHUB_TOKEN }}
- name: List
shell: pwsh
run: dir
- name: Get version
shell: pwsh
run: script\getversion.ps1
- name: Get files
shell: pwsh
run: script\getfiles.ps1 1 0
- name: Build AIO
uses: joncloud/makensis-action@v4.1
- name: Rename build
shell: pwsh
run: script\rename.ps1 0
- name: Release WinAIO
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: win64_slim.exe
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
# windows arm AIO ------------------------------------------------------
winarmaio:
#if: false
name: WinarmAIO
runs-on: windows-2022
needs: install
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Get revision
uses: dsaltares/fetch-gh-release-asset@master
with:
file: 'revision.txt'
target: 'revision.txt'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Get winzip
uses: dsaltares/fetch-gh-release-asset@master
with:
file: 'winarm64.zip'
target: 'winarm64.zip'
token: ${{ secrets.GITHUB_TOKEN }}
- name: List
shell: pwsh
run: dir
- name: Get version
shell: pwsh
run: script\getversion.ps1
- name: Get files
shell: pwsh
run: script\getfiles.ps1 0 1
- name: Build AIO
uses: joncloud/makensis-action@v4.1
- name: Rename build
shell: pwsh
run: script\rename.ps1 0
- name: Release WinarmAIO
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: winarm64.exe
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
# windows arm slim AIO -------------------------------------------------
winarmaios:
#if: false
name: WinarmAIOslim
runs-on: windows-2022
needs: install
steps:
- name: Checkout Git repository
uses: actions/checkout@v4
- name: Get revision
uses: dsaltares/fetch-gh-release-asset@master
with:
file: 'revision.txt'
target: 'revision.txt'
token: ${{ secrets.GITHUB_TOKEN }}
- name: Get winzip
uses: dsaltares/fetch-gh-release-asset@master
with:
file: 'winarm64.zip'
target: 'winarm64.zip'
token: ${{ secrets.GITHUB_TOKEN }}
- name: List
shell: pwsh
run: dir
- name: Get version
shell: pwsh
run: script\getversion.ps1
- name: Get files
shell: pwsh
run: script\getfiles.ps1 1 1
- name: Build AIO
uses: joncloud/makensis-action@v4.1
- name: Rename build
shell: pwsh
run: script\rename.ps1 0
- name: Release WinarmAIOs
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: winarm64_slim.exe
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
# webhook --------------------------------------------------------------
webhook:
#if: false
name: Run Webhook
runs-on: ubuntu-latest
needs: [winaio, winaios, winarmaio, winarmaios]
steps:
- name: distribution
uses: distributhor/workflow-webhook@v2
env:
webhook_url: ${{ secrets.WEBHOOK_URL }}
webhook_secret: ${{ secrets.WEBHOOK_SECRET }}
data: '{ "id": "jinstall" }'