-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (29 loc) · 926 Bytes
/
setup.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Setup CODESYS Installation
on:
push:
branches:
- master
env:
INSTALLER_VERSION: 2.2.2
INSTALLER_BASE_URL: https://store-archive.codesys.com/ftp_download/3S/Installer/000127/
INSTALLER_DIR: C:\Program Files (x86)\CODESYS\APInstaller
jobs:
setup-codesys:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download installer
shell: bash
run: |
curl "${{ env.INSTALLER_BASE_URL }}${{ env.INSTALLER_VERSION }}/CODESYS%20Installer%20${{ env.INSTALLER_VERSION }}.exe" -o installer.exe
- name: Install CODESYS
shell: pwsh
run: |
Start-Process -FilePath "installer.exe" -ArgumentList "/S /v/qb" -Wait
Remove-Item -Path "installer.exe"
- name: Update Installer
shell: pwsh
run: |
cd $env:INSTALLER_DIR
.\APInstaller.CLI.exe --selfUpdate