{"id":22549882,"url":"https://github.com/openmodelica/setup-openmodelica","last_synced_at":"2026-02-02T08:14:08.405Z","repository":{"id":38393348,"uuid":"505805254","full_name":"OpenModelica/setup-openmodelica","owner":"OpenModelica","description":"Set up an environment with OpenModelica and Modelica libraries available.","archived":false,"fork":false,"pushed_at":"2024-11-01T18:31:38.000Z","size":7342,"stargazers_count":6,"open_issues_count":12,"forks_count":1,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-03-24T03:35:06.404Z","etag":null,"topics":["actions","modelica","openmodelica"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/setup-openmodelica-environment","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenModelica.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-21T11:01:07.000Z","updated_at":"2025-01-01T23:54:15.000Z","dependencies_parsed_at":"2024-01-01T10:06:33.114Z","dependency_job_id":"8b116e66-96a1-460f-9228-96e1d045d87e","html_url":"https://github.com/OpenModelica/setup-openmodelica","commit_stats":{"total_commits":102,"total_committers":2,"mean_commits":51.0,"dds":0.3431372549019608,"last_synced_commit":"12ab68125241283f63a98a4ee17ba924c6085df0"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenModelica%2Fsetup-openmodelica","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenModelica%2Fsetup-openmodelica/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenModelica%2Fsetup-openmodelica/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenModelica%2Fsetup-openmodelica/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenModelica","download_url":"https://codeload.github.com/OpenModelica/setup-openmodelica/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142976,"owners_count":21054671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","modelica","openmodelica"],"created_at":"2024-12-07T16:10:18.630Z","updated_at":"2026-02-02T08:14:08.398Z","avatar_url":"https://github.com/OpenModelica.png","language":"TypeScript","readme":"# setup-openmodelica Action\n\n[![build-test][build-test-badge]][build-test-link]\n[![Check dist/][check-dist-badge]][check-dist-link]\n[![CodeQL][codeql-badge]][codeql-link]\n\nThis action sets up the [OpenModelica Compiler](https://openmodelica.org/) `omc`\nfor use in actions on Linux and Windows runners. On Linux apt is used to install\nOpenModelica, on Windows the installer executable is used.\nAfterwards the OpenModelica Package manager installs Modelica libraries.\n\n## Usage\n\n### Inputs\n\n- `version`: Version of OpenModelica to install.\n  - For example `'nightly'`, `'stable'`, `'release'`, `'1.24'` or `'1.24.5'`.\n- `architecture`: Choose between 64 and 32 bit architecture. Can be `'64'` or\n                  `'32'`.\n- `packages`: OpenModelica APT packages to install. Only used on Linux OS.\n  - For example `'omc'` for the OpenModelica Compiler or `'omsimulator'` for\n    OMSimulator. Use one package per line.\n- `libraries`: Modelica libraries to install with the\n  [OpenModelica package manager][om-package-manager-link].\n  - One library per line with exact version number. Will install exact match\n    only and all dependencies.\n\n    ```yml\n      libraries: |\n        'Modelica 4.0.0'\n        'Modelica 3.2.3+maint.om'\n    ```\n\n## Available OpenModelica versions\n\n### Linux\n\n| Version      | OS      | Arch                      | Available |\n|--------------|---------|---------------------------|-----------|\n| nightly      | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| stable       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| release      | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.26.1       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.26.0       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.25.7       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.25.6       | Linux   | amd64, arm64, armhf, i386 | ❌        |\n| 1.25.5       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.25.4       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.25.3       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.25.2       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.25.1       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.25.0       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.24.5       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.23.1       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.23.0       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.22.4       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.22.3       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.22.2       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.22.1       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.22.0       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.21.1       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.20.1       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.20.0       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.19.2       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.19.1       | Linux   | amd64, arm64, armhf, i386 | ❌        |\n| 1.19.0       | Linux   | amd64, arm64, armhf, i386 | ❌        |\n| 1.18.1       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.18.0       | Linux   | amd64, arm64, armhf, i386 | ✔️        |\n| 1.17.0       | Linux   | amd64, arm64, armhf, i386 | ☑️        |\n| 1.16.5       | Linux   | amd64, arm64, armhf, i386 | ☑️        |\n| 1.16.4       | Linux   | amd64, arm64, armhf, i386 | ☑️        |\n| 1.16.2       | Linux   | amd64, arm64, armhf, i386 | ☑️        |\n| 1.16.1       | Linux   | amd64, arm64, armhf, i386 | ☑️        |\n| 1.16.0       | Linux   | amd64, arm64, armhf, i386 | ☑️        |\n| 1.14.2       | Linux   | amd64, arm64, armhf, i386 | ☑️        |\n| 1.14.1       | Linux   | amd64, arm64, armhf, i386 | ☑️        |\n| 1.13.2       | Linux   | amd64, arm64, armhf, i386 | ☑️        |\n\n✔️: Available ☑️: Available, but untested ❌: Not available\n\n## Windows\n\n| Version      | OS      | Arch                      | Available |\n|--------------|---------|---------------------------|-----------|\n| nightly      | Windows | 64bit                     | ✔️        |\n| stable       | Windows | 64bit                     | ✔️        |\n| release      | Windows | 64bit                     | ✔️        |\n| 1.26.1       | Windows | 64bit                     | ✔️        |\n| 1.26.0       | Windows | 64bit                     | ✔️        |\n| 1.25.7       | Windows | 64bit                     | ✔️        |\n| 1.25.6       | Windows | 64bit                     | ❌        |\n| 1.25.5       | Windows | 64bit                     | ✔️        |\n| 1.25.4       | Windows | 64bit                     | ✔️        |\n| 1.25.3       | Windows | 64bit                     | ✔️        |\n| 1.25.2       | Windows | 64bit                     | ✔️        |\n| 1.25.1       | Windows | 64bit                     | ✔️        |\n| 1.25.0       | Windows | 64bit                     | ✔️        |\n| 1.24.5       | Windows | 64bit                     | ✔️        |\n| 1.23.1       | Windows | 64bit                     | ✔️        |\n| 1.23.0       | Windows | 64bit                     | ✔️        |\n| 1.22.3       | Windows | 64bit                     | ✔️        |\n| 1.22.2       | Windows | 64bit                     | ✔️        |\n| 1.22.1       | Windows | 64bit                     | ✔️        |\n| 1.22.0       | Windows | 64bit                     | ✔️        |\n| 1.21.0       | Windows | 64bit                     | ✔️        |\n| 1.20.0       | Windows | 64bit                     | ✔️        |\n| 1.19.2       | Windows | 64bit                     | ✔️        |\n| 1.19.0       | Windows | 64bit                     | ☑️        |\n| 1.18.1       | Windows | 64bit                     | ☑️        |\n| 1.18.0       | Windows | 64bit                     | ☑️        |\n| 1.17.0       | Windows | 64bit                     | ☑️        |\n| all          | Windows | 32bit                     | ❌        |\n\n✔️: Available ☑️: Available, but untested ❌: Not available\n\n## Mac\n\nNot available.\n\n## Examples\n\n```yaml\n- uses: OpenModelica/setup-openmodelica@v1.0\n  with:\n    version: '1.26.1'\n    packages: |\n      'omc'\n      'omsimulator'\n    libraries: |\n      'Modelica 4.0.0'\n      'Modelica 3.2.3+maint.om'\n    omc-diff: true\n```\n\n```yaml\n- uses: OpenModelica/setup-openmodelica@v1.0\n  with:\n    version: 'nightly'\n```\n\n```yaml\n- uses: OpenModelica/setup-openmodelica@v1.0\n  with:\n    version: 'stable'\n```\n\n## Known Limitations\n\nThis action can be slow, especially on Windows, see issue [#36][issue-36-link].\n\n- Macos runners are not supported, because OpenModelica discontinued the Mac\n  builds after version 1.16. It should be possible to build/install latest\n  OpenModelica nightly for macOS, see [this README][macos-readme]:.\n- OPENMODELICA home environment variable is only set on Windows. If you need it\n  on Linux as well open an issue.\n\n## Developing this action\n\nThe tests will install all sorts of OpenModelica versions and tools. To prevent\nthe installer from messing with your host system use the provided dockerfile or\ndev-container:\n\n- Linux: [.devcontainer/devcontainer.json](.devcontainer/devcontainer.json)\n- Windows: [.ci/dockerfile](.ci/dockerfile)\n\nTo build and test run:\n\n```bash\nnpm install\nnpm run build\nnpm run package\nnpm test\n```\n\n## License\n\nThis action is licensed with the OSMC Public License v1.8, see\n[OSMC-License.txt](./OSMC-License.txt).\n\n## Acknowledgments\n\nThis package was initially developed by\n[Hochschule Bielefeld - University of Applied Sciences and Arts](hsbi.de)\nas part of the\n[Proper Hybrid Models for Smarter Vehicles (PHyMoS)](https://phymos.de/en/)\nproject, supported by the German\n[Federal Ministry for Economic Affairs and Climate Action][bmwk]\nwith project number `19|200022G`.\n\n[build-test-badge]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/test.yml/badge.svg \"Build Badge\"\n[build-test-link]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/test.yml\n[check-dist-badge]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/check-dist.yml/badge.svg \"Check dist/ Badge\"\n[check-dist-link]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/check-dist.yml\n[codeql-badge]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/codeql-analysis.yml/badge.svg \"CodeQL Badge\"\n[codeql-link]: https://github.com/OpenModelica/setup-openmodelica/actions/workflows/codeql-analysis.yml\n[om-package-manager-link]: https://openmodelica.org/doc/OpenModelicaUsersGuide/latest/packagemanager.html\n[issue-36-link]: https://github.com/AnHeuermann/setup-openmodelica/issues/36\n[macos-readme]: https://github.com/OpenModelica/OpenModelica/blob/master/README.cmake.md#33-macos\n[bmwk]: https://www.bmwk.de/Navigation/EN/Home/home.html\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmodelica%2Fsetup-openmodelica","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenmodelica%2Fsetup-openmodelica","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenmodelica%2Fsetup-openmodelica/lists"}