Skip to content

Commit

Permalink
cygwin github action + sysoptions workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonros committed Nov 23, 2023
1 parent 9925b00 commit 177bdd4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
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
#endif
#endif

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

0 comments on commit 177bdd4

Please sign in to comment.