Skip to content

Commit a5f32fc

Browse files
committed
💚 Update CI with omc installation
1 parent ef00dd6 commit a5f32fc

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

‎.github/workflows/build.yaml‎

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: build
22
on:
33
push:
4-
branches: ["main"]
5-
tags: ["*"]
4+
branches: [ "main" ]
5+
tags: [ "*" ]
66
pull_request:
77
jobs:
88
lint:
@@ -23,10 +23,21 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
include:
26-
- {name: '3.10', python: '3.10', tox: py310}
27-
- {name: '3.12', python: '3.12', tox: py312}
28-
- {name: 'min', python: '3.10', tox: min}
26+
- { name: '3.10', python: '3.10', tox: py310 }
27+
- { name: '3.12', python: '3.12', tox: py312 }
28+
- { name: 'min', python: '3.10', tox: min }
2929
steps:
30+
- name: Install OpenModelica
31+
run:
32+
sudo apt-get update
33+
sudo apt-get install ca-certificates curl gnupg
34+
sudo curl -fsSL http://build.openmodelica.org/apt/openmodelica.asc | \
35+
sudo gpg --dearmor -o /usr/share/keyrings/openmodelica-keyring.gpg
36+
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/openmodelica-keyring.gpg] \
37+
https://build.openmodelica.org/apt \
38+
$(cat /etc/os-release | grep "\(UBUNTU\\|DEBIAN\\|VERSION\)_CODENAME" | sort | cut -d= -f 2 | head -1) \
39+
stable" | sudo tee /etc/apt/sources.list.d/openmodelica.list
40+
sudo apt install --no-install-recommends omc
3041
- uses: actions/checkout@v3
3142
- uses: actions/setup-python@v4
3243
with:
@@ -42,7 +53,7 @@ jobs:
4253
token: ${{ secrets.CODECOV_TOKEN }}
4354
files: ./coverage.xml
4455
release:
45-
needs: [lint, tests]
56+
needs: [ lint, tests ]
4657
name: PyPI release
4758
if: startsWith(github.ref, 'refs/tags')
4859
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)