Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if Linux distributions is avaliable for OM version #146

Open
AnHeuermann opened this issue Jan 5, 2023 · 1 comment
Open

Check if Linux distributions is avaliable for OM version #146

AnHeuermann opened this issue Jan 5, 2023 · 1 comment

Comments

@AnHeuermann
Copy link
Member

E.g. for OpenModelica v.1.18.1 jammy is not available, but that is currently the default distribution for GitHub actions on ubuntu-latest. See https://build.openmodelica.org/omc/builds/linux/releases/1.18.1/dists/ for available distributions.

setup-openmodelica should check what distribution is available and report an error if the current OS is not supported.

At the moment $apt-get update will fail:

/bin/bash -c echo deb [arch=amd64 signed-by=/usr/share/keyrings/openmodelica-keyring.gpg]     https://build.openmodelica.org/omc/builds/linux/releases/1.18.0/ `lsb_release -cs` release     | sudo tee /etc/apt/sources.list.d/openmodelica.list
deb [arch=amd64 signed-by=/usr/share/keyrings/openmodelica-keyring.gpg] https://build.openmodelica.org/omc/builds/linux/releases/1.18.0/ jammy release
Running apt-get install
/usr/bin/sudo apt-get update

[...]

Ign:28 https://build.openmodelica.org/omc/builds/linux/releases/1.18.0 jammy InRelease
Err:29 https://build.openmodelica.org/omc/builds/linux/releases/1.18.0 jammy Release
  404  Not Found [IP: 192.36.54.111 443]
Reading package lists...
E: The repository 'https://build.openmodelica.org/omc/builds/linux/releases/1.18.0 jammy Release' does not have a Release file.
@AnHeuermann
Copy link
Member Author

There now is https://openmodelica.org/api/linux.json.
Maybe I could use that to stay up to date or auto-update my JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant