2 Commits

2 changed files with 10 additions and 1 deletions
+9
View File
@@ -86,11 +86,20 @@ jobs:
env: env:
SERVER: ${{ github.server_url }} SERVER: ${{ github.server_url }}
OWNER: ${{ github.repository_owner }} OWNER: ${{ github.repository_owner }}
ACTOR: ${{ github.actor }}
TOKEN: ${{ secrets.PUBLISH_TOKEN }}
run: | run: |
set -euo pipefail set -euo pipefail
apt-get update apt-get update
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
cmake make gcc libc6-dev dpkg-dev file ca-certificates curl cmake make gcc libc6-dev dpkg-dev file ca-certificates curl
# The Gitea Debian registry is private: apt needs HTTP Basic Auth. [trusted=yes]
# only skips GPG verification, NOT authentication — hence the prior 401. The token
# is written to auth.conf.d (never echoed to the log).
install -d -m 0700 /etc/apt/auth.conf.d
printf 'machine %s login %s password %s\n' "${SERVER#*://}" "$ACTOR" "$TOKEN" \
> /etc/apt/auth.conf.d/gitea.conf
chmod 600 /etc/apt/auth.conf.d/gitea.conf
echo "deb [trusted=yes] ${SERVER}/api/packages/${OWNER}/debian stable main" \ echo "deb [trusted=yes] ${SERVER}/api/packages/${OWNER}/debian stable main" \
> /etc/apt/sources.list.d/gitea.list > /etc/apt/sources.list.d/gitea.list
apt-get update apt-get update
+1 -1
View File
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.16) cmake_minimum_required(VERSION 3.16)
project(vmsig VERSION 0.3.1 LANGUAGES C) project(vmsig VERSION 0.3.2 LANGUAGES C)
set(CMAKE_C_STANDARD 17) set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON) set(CMAKE_C_STANDARD_REQUIRED ON)