Skip to content

Commit

Permalink
ci: add non-static autotools i386 build, ignore GHA updates on AppVeyor
Browse files Browse the repository at this point in the history
Add a non-static autotools build to GitHub Actions. Make this build
target i386 and libgcrypt, to test a new build combination if we are at
it.

Also:
- GHA: add necessary generic bits for i386 autotools builds.
- AppVeyor CI: teach it to ignore commits updating our GHA config.

Follow-up to 572c57c libssh2#1072
Closes libssh2#1074
  • Loading branch information
vszakats committed May 31, 2023
1 parent 572c57c commit c6e137f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -52,6 +52,12 @@ jobs:
crypto: mbedTLS
build: cmake
zlib: 'ON'
- compiler: clang
arch: i386
crypto: Libgcrypt
build: autotools
zlib: 'ON'
options: --disable-static
env:
CC: ${{ matrix.compiler }}
steps:
Expand Down Expand Up @@ -93,7 +99,14 @@ jobs:
run: autoreconf -fi
- name: 'autotools configure'
if: ${{ matrix.build == 'autotools' }}
run: mkdir bld && cd bld && ../configure --enable-werror --enable-debug
run: |
if [ '${{ matrix.arch }}' = 'i386' ]; then
crossoptions='--host=i686-pc-linux-gnu'
export CFLAGS=-m32
fi
mkdir bld && cd bld && ../configure --enable-werror --enable-debug \
${crossoptions} ${{ matrix.options }}
- name: 'autotools build'
if: ${{ matrix.build == 'autotools' && !matrix.target }}
run: make -C bld -j3
Expand Down
4 changes: 4 additions & 0 deletions appveyor.yml
Expand Up @@ -209,6 +209,10 @@ on_finish:
Start-Sleep -Seconds 3
Get-Process -Name "sshd" -ErrorAction SilentlyContinue | Stop-Process
skip_commits:
files:
- '.github/**/*'

# Limit branches to avoid testing feature branches twice (as branch and as pull request)
branches:
only:
Expand Down

0 comments on commit c6e137f

Please sign in to comment.