Skip to content

Commit

Permalink
Added documentation, added versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRohn committed Mar 20, 2024
1 parent dead448 commit 7c2e58c
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Setup CODESYS Installation
name: Setup CODESYS Installation in matrix

on:
push:
branches:
- master
on: push

jobs:
setup-codesys:
Expand Down Expand Up @@ -41,7 +38,4 @@ jobs:
installer-version: 2.2.2
generation: ${{ matrix.generation }}
architecture: ${{ matrix.architecture }}
patch: ${{ matrix.patch }}
hotfix: 0
build: 0
#installation-directory: C:\CODESYS
patch: ${{ matrix.patch }}
13 changes: 13 additions & 0 deletions .github/workflows/versioning.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Keep the versions up-to-date

on:
release:
types: [published, edited]

jobs:
actions-tagger:
runs-on: ubuntu-latest
steps:
- uses: Actions-R-Us/actions-tagger@latest
with:
publish_latest_tag: false
96 changes: 95 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,95 @@
# action-codesys-setup
# Github action setup CODESYS

> This github action is used to install CODESYS for CI/CD jobs.
## About

This action is designed to install CODESYS for further CI/CD jobs, such as signing libraries, signing packages, etc.
It can also be used to process test cases or other CI/CD jobs in your workflow.

## Usage

>:white_flag: See the [inputs](#inputs) section for detailed descriptions.
```yml
- name: Setup CODESYS
uses: powerIO-GmbH/action-codesys-setup@v<version>
with:
installer-version: 2.2.2
generation: 3.5.19.0
architecture: 64
patch: 6
hotfix: 0
build: 0
```
## Usage examples
- Install CODESYS Version `3.5.17.2`:
```yml
- name: Setup CODESYS
uses: powerIO-GmbH/action-codesys-setup@v<version>
with:
generation: 3.5.17.0
architecture: 64
patch: 2
```

## Inputs

The action supports the following inputs:

- `installer-version`

The version of the installer to use to install the CODESYS installation.

**required:** *false*
**default:**: *`2.2.2`*

- `generation`

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.19.0`*

- `architecture`

The installation architecture of CODESYS. Allowed inputs: `32` and `64`.

**required:** *false*
**default:**: *`64`*

- `patch`

The patch of the CODESYS version to install.

**required:** *false*
**default:**: *`0`*

- `hotfix`

The hotfix of the CODESYS version to install.

**required:** *false*
**default:**: *`0`*

- `build`

The build of the CODESYS version to install.

**required:** *false*
**default:**: *`0`*

- `installation-directory`

This can be used to define a custom installation directory.
If this input is empty, the installation path is set based on the architecture and installation version.

For example - bit `64`, generation `3.5.19.0` and patch `6`:
`C:\Program Files\CODESYS 3.5.19.6`

For example - bit `32`, generation `3.5.17.0` and patch `2`:
`C:\Program Files (x86)\CODESYS 3.5.17.2`
25 changes: 18 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,48 @@ branding:

inputs:
installer-version:
description: 'The version of the CODESYS installer to use'
description: 'The version of the installer to use to install the CODESYS installation.'
required: false
default: 2.2.2

generation:
description: 'The generation of the CODESYS version to install'
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.19.0

architecture:
description: 'The architecture of the CODESYS version to install'
description: 'The installation architecture of CODESYS. Allowed inputs: `32` and `64`.'
required: false
default: 64

patch:
description: 'The patch of the CODESYS version to install'
description: 'The patch of the CODESYS version to install.'
required: false
default: 0

hotfix:
description: 'The hotfix of the CODESYS version to install'
description: 'The hotfix of the CODESYS version to install.'
required: false
default: 0

build:
description: 'The build of the CODESYS version to install'
description: 'The build of the CODESYS version to install.'
required: false
default: 0

installation-directory:
description: 'The directory to install CODESYS to'
description: >
'This can be used to define a custom installation directory.
If this input is empty, the installation path is set based on the architecture and installation version.
For example - bit `64`, generation `3.5.19.0` and patch `6`:
`C:\Program Files\CODESYS 3.5.19.6`
For example - bit `32`, generation `3.5.17.0` and patch `2`:
`C:\Program Files (x86)\CODESYS 3.5.17.2`'
required: false
default: ''

Expand Down

0 comments on commit 7c2e58c

Please sign in to comment.