Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cygwin github action + sysoptions workaround #261

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/cygwin-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Cygwin Build
on:
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
env:
SHELLOPTS: igncr
defaults:
run:
shell: C:/tools/cygwin/bin/bash.exe --login '{0}'
steps:
- uses: egor-tensin/setup-cygwin@v4
with:
install-dir: C:/tools/cygwin
packages: gcc-core gcc-g++ autoconf automake libtool pkg-config make zlib-devel libcrypt-devel libtommath-devel cygwin-devel
- run: git config --global core.autocrlf false
- run: git config --system core.eol lf
- uses: actions/checkout@v2
- run: cd $GITHUB_WORKSPACE; autoreconf --verbose --force
- run: cd $GITHUB_WORKSPACE; ./configure
- run: cd $GITHUB_WORKSPACE; make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"
- uses: actions/upload-artifact@v2
with:
name: dropbear
path: |
${{ github.workspace }}/dropbear.exe
${{ github.workspace }}/dbclient.exe
${{ github.workspace }}/dropbearkey.exe
${{ github.workspace }}/dropbearconvert.exe
${{ github.workspace }}/scp.exe
7 changes: 7 additions & 0 deletions src/sysoptions.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
* This file is only included from options.h
*******************************************************************/

/* TODO: find a better workaround */
#ifdef __CYGWIN__
#ifndef HAVE_SYS_RANDOM_H
#define HAVE_SYS_RANDOM_H 1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you still have config.log handy, can you send it? It might show why sys/random.h isn't being found.

#endif
#endif

#ifndef DROPBEAR_VERSION
#define DROPBEAR_VERSION "2022.83"
#endif
Expand Down