Skip to content

Commit

Permalink
DRTVWR-578: promote actions branch to master
Browse files Browse the repository at this point in the history
  • Loading branch information
nat-goodspeed authored Oct 25, 2023
2 parents 2ee3d71 + 8fff38a commit 4b69d82
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 56 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:

- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
18 changes: 18 additions & 0 deletions .github/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- dependabot
categories:
- title: Breaking Changes 🛠
labels:
- semver-major
- breaking-change
- title: New Features 🎉
labels:
- semver-minor
- enhancement
- title: Other Changes
labels:
- '*'
24 changes: 24 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build
on: [push]
jobs:
build:
strategy:
matrix:
os: [windows-2022, macos-11, ubuntu-22.04]
addrsize: ["64"]
include:
- os: windows-2022
addrsize: "32"
runs-on: ${{ matrix.os }}
steps:
- uses: secondlife/action-autobuild@v3
with:
addrsize: ${{ matrix.addrsize }}
release:
needs: build
runs-on: [ubuntu-latest]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: secondlife/action-autobuild-release@v1
with:
public: true
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ uriparser/uriparser.dir
uriparser/Win32
stage/
*.tar.bz2
uriparser/CMakeCache.txt
uriparser/CMakeCache.txt
*.sln
*.vcxproj
*.vcxproj.filters
*.proj
*.proj.filters
7 changes: 0 additions & 7 deletions BuildParams

This file was deleted.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 3p-uriparser

[uriparser][] autobuild package

[uriparser]: https://uriparser.github.io/
4 changes: 0 additions & 4 deletions README.txt

This file was deleted.

61 changes: 26 additions & 35 deletions build-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ source_environment_tempfile="$stage/source_environment.sh"
"$AUTOBUILD" source_environment > "$source_environment_tempfile"
. "$source_environment_tempfile"

# remove_cxxstd
source "$(dirname "$AUTOBUILD_VARIABLES_FILE")/functions"

pushd "$URIPARSER_SOURCE_DIR"
case "$AUTOBUILD_PLATFORM" in

Expand All @@ -46,19 +49,23 @@ pushd "$URIPARSER_SOURCE_DIR"
rm "$stage"/version.{obj,exe}

cmake . -G "$AUTOBUILD_WIN_CMAKE_GEN" \
-DCMAKE_INSTALL_PREFIX:STRING="$(cygpath -w ${stage})" \
-DCMAKE_CXX_FLAGS="$LL_BUILD_RELEASE" \
-DCMAKE_C_FLAGS="$LL_BUILD_RELEASE" \
-DURIPARSER_BUILD_TESTS=OFF \
-DURIPARSER_BUILD_DOCS=OFF

build_sln "uriparser.sln" "Release|$AUTOBUILD_WIN_VSPLATFORM" "uriparser"
-A $AUTOBUILD_WIN_VSPLATFORM \
-DCMAKE_INSTALL_PREFIX:STRING="$(cygpath -w ${stage})" \
-DCMAKE_CXX_FLAGS="$LL_BUILD_RELEASE" \
-DCMAKE_C_FLAGS="$LL_BUILD_RELEASE" \
-DURIPARSER_BUILD_TESTS=OFF \
-DURIPARSER_BUILD_DOCS=OFF

msbuild.exe \
"uriparser.sln" \
-t:uriparser \
-p:Configuration=Release \
-p:Platform=$AUTOBUILD_WIN_VSPLATFORM \
-p:PlatformToolset=v143

mkdir -p "$stage/lib/release"
cp -a "Release/uriparser.lib" \
"$stage/lib/release/uriparser.lib"
cp -a "Release/uriparser.dll" \
"$stage/lib/release/uriparser.dll"
cp -a "Release/uriparser.lib" "$stage/lib/release/uriparser.lib"
cp -a "Release/uriparser.dll" "$stage/lib/release/uriparser.dll"
mkdir -p "$stage/include/uriparser"
cp -a include/uriparser/*.h "$stage/include/uriparser"
;;
Expand All @@ -73,10 +80,10 @@ pushd "$URIPARSER_SOURCE_DIR"

cmake . -DCMAKE_INSTALL_PREFIX:STRING="${stage}" \
-DCMAKE_CXX_FLAGS="$LL_BUILD_RELEASE" \
-DCMAKE_C_FLAGS="$LL_BUILD_RELEASE" \
-DCMAKE_C_FLAGS="$(remove_cxxstd $LL_BUILD_RELEASE)" \
-DURIPARSER_BUILD_TESTS=OFF \
-DURIPARSER_BUILD_DOCS=OFF
make
make -j$(nproc)
make install

stage_lib="${stage}"/lib
Expand All @@ -91,24 +98,8 @@ pushd "$URIPARSER_SOURCE_DIR"
# Make sure libs are stamped with the -id
# fix_dylib_id doesn't really handle symlinks
pushd "$stage_release"
fix_dylib_id "liburiparser.1.0.27.dylib" || \
echo "fix_dylib_id liburiparser.dylib failed, proceeding"
fix_dylib_id "liburiparser.1.dylib" || \
echo "fix_dylib_id liburiparser.dylib failed, proceeding"

CONFIG_FILE="$build_secrets_checkout/code-signing-osx/config.sh"
if [ -f "$CONFIG_FILE" ]; then
source $CONFIG_FILE
for dylib in lib*.dylib;
do
if [ -f "$dylib" ]; then
codesign --force --timestamp --sign "$APPLE_SIGNATURE" "$dylib"
fi
done
else
echo "No config file found; skipping codesign."
fi
popd
fix_dylib_id "liburiparser.1.0.27.dylib" || echo "fix_dylib_id liburiparser.dylib failed, proceeding"
fix_dylib_id "liburiparser.1.dylib" || echo "fix_dylib_id liburiparser.dylib failed, proceeding"
;;

linux*)
Expand All @@ -135,20 +126,20 @@ pushd "$URIPARSER_SOURCE_DIR"

cmake .. -DCMAKE_INSTALL_PREFIX:STRING="${stage}" \
-DCMAKE_CXX_FLAGS="$LL_BUILD_RELEASE" \
-DCMAKE_C_FLAGS="$LL_BUILD_RELEASE" \
-DCMAKE_C_FLAGS="$(remove_cxxstd $LL_BUILD_RELEASE)" \
-DURIPARSER_BUILD_TESTS=OFF \
-DURIPARSER_BUILD_DOCS=OFF -DBUILD_SHARED_LIBS=OFF

make -j $AUTOBUILD_CPU_COUNT
make -j$(nproc)
make install

popd
mkdir -p "${stage}/lib/release"
mv ${stage}/lib/*.a "${stage}/lib/release"

;;
;;
esac
mkdir -p "$stage/LICENSES"
pwd
cp -a COPYING "$stage/LICENSES/uriparser.txt"
cp -a "${top}/uriparser/COPYING" "$stage/LICENSES/uriparser.txt"
popd
9 changes: 0 additions & 9 deletions clean.bat

This file was deleted.

0 comments on commit 4b69d82

Please sign in to comment.