Skip to content

Commit e31ee61

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 e31ee61

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,22 @@ 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
25+
key: cache-newt-${{ env.NEWT_REVISION }}
1926
- name: Install python-newt
2027
shell: bash
2128
run: |
2229
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
30+
sudo apt-get install libpopt-dev libslang2-dev gettext
31+
git clone https://pagure.io/newt.git
32+
cd newt
33+
git checkout $NEWT_REVISION
34+
autoreconf -fi
2935
./configure --with-python=python${{ matrix.python-version }}
3036
make -j $(nproc)
3137
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_REVISION: 5f2762040505edd7a25878fe27a00a2d34485663 # 0.52.24
1514

1615
jobs:
1716
codestyle:

0 commit comments

Comments
 (0)