Skip to content

Commit

Permalink
Build mingw build on Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
adfoster-r7 committed Apr 27, 2023
1 parent 6bac251 commit 5c4e359
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
35 changes: 35 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Verify

# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
actions: none
checks: none
contents: none
deployments: none
id-token: none
issues: none
discussions: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none

on: [push, pull_request]

jobs:
mingw:
runs-on: ubuntu-latest
timeout-minutes: 40
name: Meterpreter C Mingw Docker Build
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Compile
run: |
cd c/meterpreter
script --return --command 'make docker'
4 changes: 3 additions & 1 deletion c/meterpreter/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
ID := $(shell id -u)
# The User/Group ID of the Jenkins user in the Docker build container:
# jenkins:x:1001:1001::/var/jenkins_home:/bin/sh
ID := 1001
DOCKER_CONTAINER=rapid7/msf-ubuntu-x64-meterpreter:latest
COMMON_GEN=-Wno-dev -DUSE_STATIC_MSVC_RUNTIMES=ON
COMMON_GEN_X86=-DCMAKE_TOOLCHAIN_FILE=../toolsets/i686-w64-mingw32.cmake -DBUILD_ARCH=Win32 ${COMMON_GEN}
Expand Down

0 comments on commit 5c4e359

Please sign in to comment.