Skip to content

Check if Linux distributions is avaliable for OM version #146

@AnHeuermann

Description

@AnHeuermann

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions