Skip to content

Commit 520162a

Browse files
authored
test
1 parent 3faf763 commit 520162a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/nuitka.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,17 @@ jobs:
2525
run: sed -i.tmp -e "s#\${BUILD_VERSION}#${{ github.ref_name }}#" -e "s/\${BUILD_DATE}/$(date --iso-8601=seconds)/" run.py && rm run.py.tmp
2626
shell: bash
2727

28-
29-
- name: run centos7
30-
run: |
31-
docker run -itd -v "$(pwd)":/tmp/DDNS --name centos7Instance --net="host" docker.io/centos:7 /bin/bash
32-
sudo yum -y install yum-utils swig gcc gcc-c++ kernel-devel
33-
yum-config-manager --add-repo http://download.opensuse.org/repositories/home:/kayhayen/CentOS_7/home:kayhayen.repo
34-
sudo yum -y install nuitka
35-
.build/nuitka.cmd
36-
37-
28+
- name: Run the build process with Docker
29+
uses: addnab/docker-run-action@v3
30+
with:
31+
image: docker.io/centos:7
32+
options: -v "$(pwd)":/tmp/DDNS
33+
run: |
34+
yum-config-manager --add-repo http://download.opensuse.org/repositories/home:/kayhayen/CentOS_7/home:kayhayen.repo
35+
sudo yum -y install swig gcc gcc-c++ kernel-devel nuitka python3
36+
python3 .build/remove_python2.py
37+
cd /tmp/DDNS
38+
.build/nuitka.cmd
3839
3940
- run: ./dist/ddns || test -e config.json
4041
- run: ./dist/ddns -h

0 commit comments

Comments
 (0)