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
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
* text=auto eol=lf

dist/** -diff linguist-generated=true
60 changes: 30 additions & 30 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ main ]
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
branches: [main]
schedule:
- cron: '31 7 * * 3'
repository_dispatch:
Expand All @@ -34,40 +34,40 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'TypeScript' ]
language: ['TypeScript']
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
source-root: src
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
source-root: src
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v4
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v4

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release
#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
- name: Install
run: npm install

- name: Check Format
run: npm run format:check

- name: Lint
run: npm run lint

- name: Package
run: npm run package

Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
coverage/
dist/
lib/
node_modules/
162 changes: 81 additions & 81 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Afterwards the OpenModelica Package manager installs Modelica libraries.
- `version`: Version of OpenModelica to install.
- For example `'nightly'`, `'stable'`, `'release'`, `'1.24'` or `'1.24.5'`.
- `architecture`: Choose between 64 and 32 bit architecture. Can be `'64'` or
`'32'`.
`'32'`.
- `packages`: OpenModelica APT packages to install. Only used on Linux OS.
- For example `'omc'` for the OpenModelica Compiler or `'omsimulator'` for
OMSimulator. Use one package per line.
Expand All @@ -26,94 +26,94 @@ Afterwards the OpenModelica Package manager installs Modelica libraries.
only and all dependencies.

```yml
libraries: |
'Modelica 4.0.0'
'Modelica 3.2.3+maint.om'
libraries: |
'Modelica 4.0.0'
'Modelica 3.2.3+maint.om'
```

## Available OpenModelica versions

### Linux

| Version | OS | Arch | Available |
|--------------|---------|---------------------------|-----------|
| nightly | Linux | amd64, arm64, armhf, i386 | ✔️ |
| stable | Linux | amd64, arm64, armhf, i386 | ✔️ |
| release | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.26.3 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.26.2 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.26.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.26.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.7 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.6 | Linux | amd64, arm64, armhf, i386 | ❌ |
| 1.25.5 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.4 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.3 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.2 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.24.5 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.23.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.23.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.22.4 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.22.3 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.22.2 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.22.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.22.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.21.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.20.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.20.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.19.2 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.19.1 | Linux | amd64, arm64, armhf, i386 | ❌ |
| 1.19.0 | Linux | amd64, arm64, armhf, i386 | ❌ |
| 1.18.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.18.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.17.0 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.16.5 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.16.4 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.16.2 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.16.1 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.16.0 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.14.2 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.14.1 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.13.2 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| Version | OS | Arch | Available |
| ------- | ----- | ------------------------- | --------- |
| nightly | Linux | amd64, arm64, armhf, i386 | ✔️ |
| stable | Linux | amd64, arm64, armhf, i386 | ✔️ |
| release | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.26.3 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.26.2 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.26.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.26.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.7 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.6 | Linux | amd64, arm64, armhf, i386 | ❌ |
| 1.25.5 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.4 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.3 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.2 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.25.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.24.5 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.23.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.23.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.22.4 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.22.3 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.22.2 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.22.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.22.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.21.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.20.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.20.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.19.2 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.19.1 | Linux | amd64, arm64, armhf, i386 | ❌ |
| 1.19.0 | Linux | amd64, arm64, armhf, i386 | ❌ |
| 1.18.1 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.18.0 | Linux | amd64, arm64, armhf, i386 | ✔️ |
| 1.17.0 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.16.5 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.16.4 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.16.2 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.16.1 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.16.0 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.14.2 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.14.1 | Linux | amd64, arm64, armhf, i386 | ☑️ |
| 1.13.2 | Linux | amd64, arm64, armhf, i386 | ☑️ |

✔️: Available ☑️: Available, but untested ❌: Not available

## Windows

| Version | OS | Arch | Available |
|--------------|---------|---------------------------|-----------|
| nightly | Windows | 64bit | ✔️ |
| stable | Windows | 64bit | ✔️ |
| release | Windows | 64bit | ✔️ |
| 1.26.3 | Windows | 64bit | ✔️ |
| 1.26.2 | Windows | 64bit | ✔️ |
| 1.26.1 | Windows | 64bit | ✔️ |
| 1.26.0 | Windows | 64bit | ✔️ |
| 1.25.7 | Windows | 64bit | ✔️ |
| 1.25.6 | Windows | 64bit | ❌ |
| 1.25.5 | Windows | 64bit | ✔️ |
| 1.25.4 | Windows | 64bit | ✔️ |
| 1.25.3 | Windows | 64bit | ✔️ |
| 1.25.2 | Windows | 64bit | ✔️ |
| 1.25.1 | Windows | 64bit | ✔️ |
| 1.25.0 | Windows | 64bit | ✔️ |
| 1.24.5 | Windows | 64bit | ✔️ |
| 1.23.1 | Windows | 64bit | ✔️ |
| 1.23.0 | Windows | 64bit | ✔️ |
| 1.22.3 | Windows | 64bit | ✔️ |
| 1.22.2 | Windows | 64bit | ✔️ |
| 1.22.1 | Windows | 64bit | ✔️ |
| 1.22.0 | Windows | 64bit | ✔️ |
| 1.21.0 | Windows | 64bit | ✔️ |
| 1.20.0 | Windows | 64bit | ✔️ |
| 1.19.2 | Windows | 64bit | ✔️ |
| 1.19.0 | Windows | 64bit | ☑️ |
| 1.18.1 | Windows | 64bit | ☑️ |
| 1.18.0 | Windows | 64bit | ☑️ |
| 1.17.0 | Windows | 64bit | ☑️ |
| all | Windows | 32bit | ❌ |
| Version | OS | Arch | Available |
| ------- | ------- | ----- | --------- |
| nightly | Windows | 64bit | ✔️ |
| stable | Windows | 64bit | ✔️ |
| release | Windows | 64bit | ✔️ |
| 1.26.3 | Windows | 64bit | ✔️ |
| 1.26.2 | Windows | 64bit | ✔️ |
| 1.26.1 | Windows | 64bit | ✔️ |
| 1.26.0 | Windows | 64bit | ✔️ |
| 1.25.7 | Windows | 64bit | ✔️ |
| 1.25.6 | Windows | 64bit | ❌ |
| 1.25.5 | Windows | 64bit | ✔️ |
| 1.25.4 | Windows | 64bit | ✔️ |
| 1.25.3 | Windows | 64bit | ✔️ |
| 1.25.2 | Windows | 64bit | ✔️ |
| 1.25.1 | Windows | 64bit | ✔️ |
| 1.25.0 | Windows | 64bit | ✔️ |
| 1.24.5 | Windows | 64bit | ✔️ |
| 1.23.1 | Windows | 64bit | ✔️ |
| 1.23.0 | Windows | 64bit | ✔️ |
| 1.22.3 | Windows | 64bit | ✔️ |
| 1.22.2 | Windows | 64bit | ✔️ |
| 1.22.1 | Windows | 64bit | ✔️ |
| 1.22.0 | Windows | 64bit | ✔️ |
| 1.21.0 | Windows | 64bit | ✔️ |
| 1.20.0 | Windows | 64bit | ✔️ |
| 1.19.2 | Windows | 64bit | ✔️ |
| 1.19.0 | Windows | 64bit | ☑️ |
| 1.18.1 | Windows | 64bit | ☑️ |
| 1.18.0 | Windows | 64bit | ☑️ |
| 1.17.0 | Windows | 64bit | ☑️ |
| all | Windows | 32bit | ❌ |

✔️: Available ☑️: Available, but untested ❌: Not available

Expand Down Expand Up @@ -191,11 +191,11 @@ project, supported by the German
[Federal Ministry for Economic Affairs and Climate Action][bmwk]
with project number `19|200022G`.

[build-test-badge]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/test.yml/badge.svg "Build Badge"
[build-test-badge]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/test.yml/badge.svg 'Build Badge'
[build-test-link]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/test.yml
[check-dist-badge]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/check-dist.yml/badge.svg "Check dist/ Badge"
[check-dist-badge]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/check-dist.yml/badge.svg 'Check dist/ Badge'
[check-dist-link]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/check-dist.yml
[codeql-badge]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/codeql-analysis.yml/badge.svg "CodeQL Badge"
[codeql-badge]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/codeql-analysis.yml/badge.svg 'CodeQL Badge'
[codeql-link]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/codeql-analysis.yml
[om-package-manager-link]: https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/packagemanager.html
[issue-36-link]: https://github.com/AnHeuermann/setup-openmodelica/issues/36
Expand Down
2 changes: 1 addition & 1 deletion __tests__/installer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function linuxTests(): void {
const version = installer.getOMVersion('release')
await installer.installOM(['omc'], version, '64')
const resVer = await installer.showVersion('omc')
expect(resVer).toContain('1.26.')
expect(resVer).toContain('1.27.')
},
10 * 60000
)
Expand Down
14 changes: 7 additions & 7 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ author: 'Andreas Heuermann'
inputs:
version:
description: 'The OpenModelica version to use.
Example: "1.19.0" for version 1.19.0
or "" for latest release version'
Example: "1.19.0" for version 1.19.0
or "" for latest release version'
required: false
default: 'release'
architecture:
architecture:
description: 'The architecture of OpenModelica to be used.
Can be "64" or "32".'
Can be "64" or "32".'
required: false
default: '64'
packages:
description: 'Optional list of OpenModelica APT packages to install.
Each package has to be in a new line. Ignored on Windows.'
Each package has to be in a new line. Ignored on Windows.'
required: false
default: 'omc'
libraries:
description: 'Optional list of Modelica libraries to install.
One library per line, separate version number with a space <library> <version>
Example: "Modelica 4.0.0"'
One library per line, separate version number with a space <library> <version>
Example: "Modelica 4.0.0"'
required: false
omc-diff:
description: 'Install OpenModelica omc-diff tool.'
Expand Down
Loading
Loading