Skip to content

Commit d00771a

Browse files
committed
ci: Fix newt download
The upstream server is no longer offering tarballs. Fetch and checkout the git repo instead. To avoid pulling from this server over and over again, cache the repo from the beginning. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
1 parent 77468d7 commit d00771a

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

.github/actions/perform-tests/action.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,21 @@ runs:
1616
run: |
1717
# install kas to have all kas dependencies:
1818
pip install .[test]
19+
- name: Cache newt
20+
id: cache-newt
21+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
22+
with:
23+
path: |
24+
newt
1925
- name: Install python-newt
2026
shell: bash
2127
run: |
2228
sudo apt-get update
23-
sudo apt-get install libpopt-dev libslang2-dev
24-
wget -q https://releases.pagure.org/newt/newt-$NEWT_VERSION.tar.gz
25-
echo "$NEWT_SHA256 newt-$NEWT_VERSION.tar.gz" | sha256sum -c
26-
tar -C /tmp -xzf newt-$NEWT_VERSION.tar.gz
27-
cd /tmp/newt-$NEWT_VERSION
28-
autoconf
29+
sudo apt-get install libpopt-dev libslang2-dev gettext
30+
git clone https://pagure.io/newt.git
31+
cd newt
32+
git checkout $NEWT_COMMIT
33+
autoreconf -fi
2934
./configure --with-python=python${{ matrix.python-version }}
3035
make -j $(nproc)
3136
sudo make install

.github/workflows/next.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ on:
1010
env:
1111
SHELLCHECK_VERSION: v0.10.0
1212
SHELLCHECK_SHA256: 6c881ab0698e4e6ea235245f22832860544f17ba386442fe7e9d629f8cbedf87
13-
NEWT_VERSION: 0.52.24
14-
NEWT_SHA256: 5ded7e221f85f642521c49b1826c8de19845aa372baf5d630a51774b544fbdbb
13+
NEWT_COMMIT: 5f2762040505edd7a25878fe27a00a2d34485663 # 0.52.24
1514

1615
jobs:
1716
codestyle:

0 commit comments

Comments
 (0)