Skip to content

Fix compiler error

Fix compiler error #31

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: "Release Version"
required: true
jobs:
release:
runs-on: ubuntu-latest
env:
WIN_FILENAME: faf-uid.exe
LINUX_FILENAME: faf-uid
UID_PLATFORM: win32
MXE_DIR: /usr/lib/mxe
MXE_TARGET: x86_64-w64-mingw32.static
MXE_PACKAGE_PREFIX: mxe-x86-64-w64-mingw32.static
steps:
- uses: actions/checkout@v4
- name: Configure MXE
run: |
echo "deb https://pkg.mxe.cc/repos/apt focal main" | sudo tee /etc/apt/sources.list.d/mxeapt.list
wget -qO- https://pkg.mxe.cc/repos/apt/client-conf/mxeapt.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/mxeapt.gpg
sudo apt-get update
# from https://mxe.cc/#requirements
sudo apt-get install \
autoconf \
automake \
autopoint \
bash \
bison \
bzip2 \
flex \
g++ \
g++-multilib \
gettext \
git \
gperf \
intltool \
libc6-dev-i386 \
libgdk-pixbuf2.0-dev \
libltdl-dev \
libgl-dev \
libpcre3-dev \
libssl-dev \
libtool-bin \
libxml-parser-perl \
lzip \
make \
openssl \
p7zip-full \
patch \
perl \
python3 \
python3-distutils \
python3-mako \
python3-packaging \
python3-pkg-resources \
python-is-python3 \
ruby \
sed \
sqlite3 \
unzip \
wget \
xz-utils \
$MXE_PACKAGE_PREFIX-jsoncpp \
$MXE_PACKAGE_PREFIX-cryptopp \
$MXE_PACKAGE_PREFIX-icu4c
- name: Build
run: |
$MXE_DIR/usr/bin/$MXE_TARGET-cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCRYPTOPP_LIBRARIES=/usr/lib/mxe/usr/$MXE_TARGET/lib/libcryptopp.a \
-DCRYPTOPP_INCLUDE_DIRS=/usr/lib/mxe/usr/$MXE_TARGET/include \
-DUID_SKIP_LEGACY=On \
-B winbuild
make -C winbuild
- name: Linux Build
env:
UID_FILENAME: faf-uid
UID_PLATFORM: 'linux'
JSONCPP_VERSION: 1.7.7
CRYPTOPP_VERSION: 8_9_0
run: |
wget https://github.com/open-source-parsers/jsoncpp/archive/$JSONCPP_VERSION.tar.gz -O jsoncpp.tar.gz
tar xfz jsoncpp.tar.gz
mkdir jsoncpp-build
cmake \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF \
-DBUILD_STATIC_LIBS=ON \
-DBUILD_SHARED_LIBS=OFF \
-B jsoncpp-build \
-S jsoncpp-$JSONCPP_VERSION
make -C jsoncpp-build
wget https://github.com/weidai11/cryptopp/archive/CRYPTOPP_$CRYPTOPP_VERSION.zip -O cryptopp.zip
unzip ./cryptopp.zip
mv cryptopp-CRYPTOPP_$CRYPTOPP_VERSION cryptopp
make -C cryptopp -f GNUmakefile CXXFLAGS='-DCRYPTOPP_NO_BACKWARDS_COMPATIBILITY_562 -DNDEBUG -O3' libcryptopp.a
asdf = $(pwd)
cmake \
-DJSONCPP_LIBRARIES=$asdf/jsoncpp-build/src/lib_json/libjsoncpp.a \
-DJSONCPP_INCLUDE_DIRS=$asdf/jsoncpp-$JSONCPP_VERSION/include \
-DCRYPTOPP_LIBRARIES=$asdf/cryptopp/libcryptopp.a \
-DCRYPTOPP_INCLUDE_DIRS=$asdf/cryptopp \
-DCMAKE_CXX_FLAGS="-DCRYPTOPP_NO_BACKWARDS_COMPATIBILITY_562" \
-DCMAKE_BUILD_TYPE=MinSizeRel \
-B linuxbuild
make -C linuxbuild
- name: Create draft release
id: create_release
uses: ncipollo/release-action@v1
with:

Check failure on line 118 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

You have an error in your yaml syntax on line 118
commit: ${{ github.sha }}
tag: ${{ github.event.inputs.version }}
draft: true
prerelease: true
artifacts: "winbuild/${{ env.WIN_FILENAME }}","linuxbuild/${{ env.LINUX_FILENAME }}"