Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,26 @@ on:

jobs:
installer:
permissions:
contents: read
uses: ./.github/workflows/test-install-installer.yml

versions:
permissions:
contents: read
uses: ./.github/workflows/test-install-versions.yml

addons:
permissions:
contents: read
uses: ./.github/workflows/test-install-addons.yml

cache:
permissions:
contents: read
uses: ./.github/workflows/test-install-cache.yml

edge:
permissions:
contents: read
uses: ./.github/workflows/test-install-edge.yml
24 changes: 12 additions & 12 deletions .github/workflows/test-install-addons.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup CODESYS
id: setup_codesys
uses: ./
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: true
generation: 3.5.21.0
patch: 4
Expand All @@ -28,7 +28,7 @@ jobs:
bd131967-3a89-4e22-a845-79b0be0a3ce1,4.1.0.0

- name: Upload info files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
if-no-files-found: warn
retention-days: 5
Expand All @@ -50,13 +50,13 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup CODESYS
id: setup_codesys
uses: ./
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: true
generation: 3.5.21.0
patch: 4
Expand All @@ -67,7 +67,7 @@ jobs:
example/custom_packages/Trace_Example_1.0.0.0.package

- name: Upload info files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
if-no-files-found: warn
retention-days: 5
Expand All @@ -89,13 +89,13 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup CODESYS
id: setup_codesys
uses: ./
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: true
generation: 3.5.21.0
patch: 4
Expand All @@ -110,7 +110,7 @@ jobs:
example/custom_packages/Trace_Example_1.0.0.0.package

- name: Upload info files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
if-no-files-found: warn
retention-days: 5
Expand All @@ -132,13 +132,13 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup CODESYS
id: setup_codesys
uses: ./
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: true
generation: 3.5.21.0
patch: 4
Expand All @@ -147,7 +147,7 @@ jobs:
add-ons-installer-import-file: example/custom_import_files/example_import_add-ons.installation-config

- name: Upload info files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
if-no-files-found: warn
retention-days: 5
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test-install-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup CODESYS with cache enabled
id: setup_cached
uses: ./
with:
generation: 3.5.21.0
generation: 3.5.22.0
architecture: 64
patch: 0
patch: 1
cache-codesys-installation: true
cache-codesys-installer: true

Expand Down Expand Up @@ -54,5 +54,5 @@ jobs:
uses: ./.github/actions/verify-codesys
with:
codesys-executable: ${{ steps.setup_cached.outputs.codesys-executable }}
generation: 3.5.21.0
patch: 0
generation: 3.5.22.0
patch: 1
24 changes: 12 additions & 12 deletions .github/workflows/test-install-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Install CODESYS 3.5.20.0 (64-bit)
id: codesys_3_5_20_0_x64
uses: ./
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: false
generation: 3.5.20.0
architecture: 64
Expand All @@ -26,7 +26,7 @@ jobs:
id: codesys_3_5_21_2_x64
uses: ./
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: false
generation: 3.5.21.0
architecture: 64
Expand All @@ -36,7 +36,7 @@ jobs:
id: codesys_3_5_19_6_x86
uses: ./
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: false
generation: 3.5.19.0
architecture: 32
Expand Down Expand Up @@ -86,13 +86,13 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup CODESYS with custom directory
id: setup_custom
uses: ./
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
generation: 3.5.21.0
patch: 0
architecture: 64
Expand Down Expand Up @@ -132,14 +132,14 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: First install installer only
id: installer_only
uses: ./
with:
installer-only: true
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: true

- name: Verify installer is available
Expand All @@ -157,7 +157,7 @@ jobs:
id: install_codesys
uses: ./
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: false
generation: 3.5.21.0
patch: 2
Expand Down Expand Up @@ -202,18 +202,18 @@ jobs:
generation: "3.5.21.0"
patch: "2"
architecture: "64"
installer-version: "2.6.0.0"
installer-version: "2.6.1.0"
auto-update: true

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Test ${{ matrix.test.name }}
id: test_setup
uses: ./
with:
installer-version: ${{ matrix.test.installer-version || '2.6.0.0' }}
installer-version: ${{ matrix.test.installer-version || '2.6.1.0' }}
auto-update-installer: ${{ matrix.test.auto-update || 'false' }}
generation: ${{ matrix.test.generation }}
patch: ${{ matrix.test.patch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-install-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup CODESYS Installer Only
id: setup_installer
uses: ./
with:
installer-only: true
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: true

- name: Test installer outputs
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/test-install-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
- 3.5.16.0
- 3.5.20.0
- 3.5.21.0
- 3.5.22.0
architecture:
- 32
- 64
Expand All @@ -27,19 +28,21 @@ jobs:
patch: 2
- generation: 3.5.21.0
patch: 4
- generation: 3.5.22.0
patch: 0

runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup CODESYS
id: setup_codesys
uses: ./
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: false
generation: ${{ matrix.generation }}
architecture: ${{ matrix.architecture }}
Expand All @@ -54,7 +57,7 @@ jobs:
echo "CODESYS executable: ${{ steps.setup_codesys.outputs.codesys-executable }}"

- name: Upload info files
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
if-no-files-found: warn
retention-days: 5
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ It can also be used to process test cases or other CI/CD jobs in your workflow.
- name: Setup CODESYS
uses: powerIO-GmbH/action-codesys-setup@v1
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: false
generation: 3.5.21.0
generation: 3.5.22.0
architecture: 64
patch: 4
patch: 1
```

## Usage examples
Expand All @@ -41,7 +41,7 @@ It can also be used to process test cases or other CI/CD jobs in your workflow.
uses: powerIO-GmbH/action-codesys-setup@v1
with:
installer-only: true
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: true
```

Expand All @@ -66,7 +66,7 @@ It can also be used to process test cases or other CI/CD jobs in your workflow.
id: setup_codesys
uses: powerIO-GmbH/action-codesys-setup@v1
with:
installer-version: 2.6.0.0
installer-version: 2.6.1.0
auto-update-installer: true
generation: 3.5.20.0
architecture: 64
Expand Down Expand Up @@ -108,10 +108,10 @@ It can also be used to process test cases or other CI/CD jobs in your workflow.
| `installer-only` | If set to `true`, only the installer will be installed without a CODESYS installation. | false | `false` |
| `cache-codesys-installation` | Enable caching of CODESYS installation. Installations are stored as sandboxes and restored on subsequent runs. | false | `false` |
| `cache-codesys-installer` | Enable caching of the CODESYS installer. Skips download on subsequent runs. | false | `false` |
| `installer-version` | The version of the installer to use to install the CODESYS installation. | false | `2.6.0.0` |
| `generation` | This is the base generation you want to install (e.g., `3.5.21.0`). Even if you want to install version `3.5.21.2`, you have to define the generation as `3.5.21.0`. The patch version is defined by the `patch` input. | false | `3.5.21.0` |
| `installer-version` | The version of the installer to use to install the CODESYS installation. | false | `2.6.1.0` |
| `generation` | This is the base generation you want to install (e.g., `3.5.22.0`). Even if you want to install version `3.5.22.1`, you have to define the generation as `3.5.21.0`. The patch version is defined by the `patch` input. | false | `3.5.22.0` |
| `architecture` | The installation architecture of CODESYS. Allowed inputs: `32` and `64`. | false | `64` |
| `patch` | The patch of the CODESYS version to install. | false | `0` |
| `patch` | The patch of the CODESYS version to install. | false | `1` |
| `hotfix` | The hotfix of the CODESYS version to install. | false | `0` |
| `build` | The build of the CODESYS version to install. | false | `0` |
| `installation-directory` | Custom installation directory. If empty, the path is set based on architecture and installation version. Examples:<br>- 64-bit, generation 3.5.19.0, patch 6: `C:\Program Files\CODESYS 3.5.19.6`<br>- 32-bit, generation 3.5.17.0, patch 2: `C:\Program Files (x86)\CODESYS 3.5.17.2` | false | `''` |
Expand Down
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ inputs:
installer-version:
description: "The version of the installer to use to install the CODESYS installation."
required: false
default: 2.6.0.0
default: 2.6.1.0

generation:
description: >
'This is the base generation you want to install. For example `3.5.19.0`.
Even if you want to install the version `3.5.19.6` you have to define the generation as `3.5.19.0`.
The patch version is defined by the `patch` input.'
required: false
default: 3.5.21.0
default: 3.5.22.0

architecture:
description: "The installation architecture of CODESYS. Allowed inputs: `32` and `64`."
Expand All @@ -43,7 +43,7 @@ inputs:
patch:
description: "The patch of the CODESYS version to install."
required: false
default: 0
default: 1

hotfix:
description: "The hotfix of the CODESYS version to install."
Expand Down
Loading