Skip to content

Commit

Permalink
update DynamoRIO & github workflow (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jclab-joseph authored Oct 3, 2024
1 parent 94dc911 commit 447ff5c
Show file tree
Hide file tree
Showing 7 changed files with 97 additions and 87 deletions.
49 changes: 0 additions & 49 deletions .appveyor.yml

This file was deleted.

92 changes: 92 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: build and release

on:
push: {}
workflow_dispatch: {}

permissions:
contents: write

jobs:
build:
runs-on: windows-2019
strategy:
matrix:
config:
- Debug
- RelWithDebInfo
platform:
- Win32
- x64

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Update submodules
run: |
git submodule update --init --recursive
- name: CMake Configure
uses: threeal/[email protected]
with:
run-build: false
source-dir: drltrace_src
build-dir: build
args: "-A ${{ matrix.platform }}"
options: |
CMAKE_BUILD_TYPE=${{ matrix.config }}
BUILD_TOOL_TESTS=ON
CMAKE_CXX_FLAGS="/utf-8"
CMAKE_C_FLAGS="/utf-8"
- name: Build
run: |
cd build
cmake --build . --config "${{ matrix.config }}"
shell: cmd

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: build-${{ matrix.config }}-${{ matrix.platform }}
path: |
build/bin*/
build/dynamorio/logs/
build/dynamorio/bin*/
build/dynamorio/lib*/
!build/dynamorio/libutil/
- name: Run tests
run: |
ctest -VV
shell: cmd

release:
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
body: |
Release version ${{ github.ref_name }}.
draft: false
prerelease: false
generate_release_notes: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload release artifacts
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/
asset_name: build-${{ matrix.config }}-${{ matrix.platform }}.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "drltrace_src/dynamorio"]
path = drltrace_src/dynamorio
url = git://github.com/DynamoRIO/dynamorio.git
url = https://github.com/DynamoRIO/dynamorio.git
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion drltrace_src/drltrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ print_symbolic_args(const char *name, void *wrapcxt, app_pc func)
*/

static void
lib_entry(void *wrapcxt, INOUT void **user_data)
lib_entry(void *wrapcxt, DR_PARAM_INOUT void **user_data)
{
const char *name = (const char *) *user_data;
const char *modname = NULL;
Expand Down
2 changes: 2 additions & 0 deletions drltrace_src/drltrace_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

#include "droption.h"

using namespace dynamorio::droption;

extern droption_t<std::string> op_logdir;
extern droption_t<bool> op_only_from_app;
extern droption_t<bool> op_follow_children;
Expand Down
2 changes: 1 addition & 1 deletion drltrace_src/dynamorio
Submodule dynamorio updated 1482 files

0 comments on commit 447ff5c

Please sign in to comment.