Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ jobs:
- run: python3 ./run.py -h

- name: Build Executable
uses: Nuitka/Nuitka-Action@main
uses: Nuitka/Nuitka-Action@v1.3
with:
nuitka-version: main
script-name: run.py
Expand Down Expand Up @@ -211,6 +211,46 @@ jobs:
dist/*.app
dist/ddns

nuitka-linux:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, ubuntu-24.04-arm ]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v4

# Prepare build version and cert
- name: Replace build version
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
shell: bash

# https://github.com/Nuitka/Nuitka/issues/2723#issuecomment-1960831891
- name: Run the build process with CentOS Docker
uses: addnab/docker-run-action@v3
with:
image: docker.io/centos:8
options: -v ${{ github.workspace }}:/DDNS
run: |
cd /etc/yum.repos.d/ && sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
dnf install -y epel-release \
&& dnf repolist \
&& dnf install -y gcc strace patchelf ccache gdb make python3-devel python3-zstandard python3-ordered-set
python3 -m pip install nuitka
cd /DDNS && python3 .build/remove_python2.py && .build/nuitka.cmd

- run: ./dist/ddns || test -e config.json
- run: ./dist/ddns -h

# Upload build result
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ddns-linux-${{ contains(matrix.os, 'arm' ) && 'arm64' || 'x64' }}
if-no-files-found: error
path: dist/ddns

docker:
if: github.event_name == 'pull_request'
needs: [ python ]
Expand Down
Loading