forked from mxmssh/drltrace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update DynamoRIO & github workflow (#1)
- Loading branch information
1 parent
94dc911
commit 447ff5c
Showing
7 changed files
with
97 additions
and
87 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule dynamorio
updated
1482 files