Bump to v6.5.3 #92
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GCC | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: dnsforwarder-${{matrix.env}}-${{matrix.os}} | |
runs-on: ${{matrix.os}} # run native test | |
strategy: | |
matrix: | |
include: | |
- os: windows-latest | |
env: x86_64 | |
sys: mingw64 | |
bin: codeblocks_win/bin/Release/dnsforwarder.exe | |
shell: msys2 {0} | |
- os: windows-latest | |
env: i686 | |
sys: mingw32 | |
bin: codeblocks_win/bin/Release/dnsforwarder.exe | |
shell: msys2 {0} | |
- os: ubuntu-latest | |
env: amd64 | |
bin: dnsforwarder | |
shell: bash | |
- os: ubuntu-latest | |
env: i386 | |
bin: dnsforwarder | |
shell: bash | |
fail-fast: false | |
defaults: | |
run: | |
shell: ${{matrix.shell}} | |
steps: | |
- uses: actions/checkout@v3 | |
# https://github.com/msys2/setup-msys2 | |
- name: "${{matrix.os}}: Set up MSYS2" | |
if: runner.os == 'Windows' | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: ${{matrix.sys}} | |
release: false | |
# pacman group: https://packages.msys2.org/group/ | |
install: >- | |
mingw-w64-${{matrix.env}}-gcc | |
mingw-w64-${{matrix.env}}-make | |
- name: "${{matrix.os}}: Setup and Config" | |
if: runner.os == 'Linux' | |
run: | | |
echo Setting up gcc ${{matrix.env}} ... | |
sudo dpkg --add-architecture ${{matrix.env}} | |
sudo apt-get update | |
if [ "${{matrix.env}}" = "i386" ]; then | |
# 20230520: Seems these dependencies have conflicts that can't be solved with the existing amd64 version. | |
sudo apt-get install -y libgcc-s1:${{matrix.env}} | |
sudo apt-get install -y gcc-multilib | |
export CFLAGS="-m32" | |
fi | |
sudo apt-get install -y libcurl4-openssl-dev:${{matrix.env}} | |
echo Configuring ... | |
aclocal | |
autoheader | |
autoconf | |
automake -a | |
CFLAGS+=" -O2" ./configure | |
- name: Build | |
run: | | |
if [ "${{runner.os}}" = "Windows" ]; then | |
cd codeblocks_win | |
mingw32-make | |
elif [ "${{runner.os}}" = "Linux" ]; then | |
make | |
fi | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dnsforwarder-${{github.head_ref || github.ref_name}}-${{matrix.env}}-${{matrix.os}} | |
path: | | |
${{matrix.bin}} |