release: ${{ inputs.netbsd_version }}
usesh: true
prepare: |
+ # Set up package repository
+ export PKG_PATH="https://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r)/All"
+ echo "PKG_PATH=${PKG_PATH}"
+
+ # Install pkgin for easier package management
+ /usr/sbin/pkg_add -v pkgin || true
+
+ # Update package database
+ pkgin -y update || /usr/sbin/pkg_add -v pkgin
+
# Install base build dependencies
- pkg_add cmake ninja-build pkgconf \
+ pkgin -y install cmake ninja-build pkgconf \
pcre2 sqlite3 openssl ragel icu \
libsodium glib2 libunwind \
- perl5 libarchive zstd xxhash \
- file
+ perl libarchive zstd xxhash \
+ file || true
# Install Lua version based on user selection
case "${{ inputs.lua_version }}" in
luajit)
- pkg_add luajit
+ pkgin -y install luajit || true
;;
lua51)
- pkg_add lua51
+ pkgin -y install lua51 || true
;;
lua53)
- pkg_add lua53
+ pkgin -y install lua53 || true
;;
lua54)
- pkg_add lua54
+ pkgin -y install lua54 || true
;;
esac