mirror of https://github.com/x64dbg/x64dbg.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.6 KiB
90 lines
2.6 KiB
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
cmake:
|
|
# Skip building pull requests from the same repository
|
|
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }}
|
|
runs-on: windows-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
arch: [x64, x86]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
fetch-depth: 1
|
|
|
|
- name: Visual Studio Development Environment
|
|
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
|
with:
|
|
arch: ${{ matrix.arch }}
|
|
|
|
- name: Build
|
|
run: |
|
|
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
|
|
cmake --build build
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: build-${{ matrix.arch }}
|
|
path: bin
|
|
if-no-files-found: error
|
|
include-hidden-files: true
|
|
retention-days: 1
|
|
|
|
package:
|
|
needs: cmake
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- name: Download x64 Artifacts
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: build-x64
|
|
path: bin
|
|
|
|
- name: Download x86 Artifacts
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: build-x86
|
|
path: bin
|
|
|
|
- name: Prepare release
|
|
run: |
|
|
curl.exe -L https://github.com/x64dbg/translations/releases/download/translations/qm.zip -o bin\qm.zip
|
|
7z x bin\qm.zip -obin
|
|
cmake -P .\cmake\release.cmake
|
|
$timestamp = Get-Date (Get-Date).ToUniversalTime() -Format "yyyy-MM-dd_HH-mm"
|
|
echo "timestamp=$timestamp" >> $env:GITHUB_ENV
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: snapshot_${{ env.timestamp }}
|
|
path: |
|
|
release/pluginsdk
|
|
release/release
|
|
release/commithash.txt
|
|
if-no-files-found: error
|
|
include-hidden-files: true
|
|
compression-level: 9
|
|
|
|
- name: Upload Artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: symbols-snapshot_${{ env.timestamp }}
|
|
path: |
|
|
release/pdb
|
|
release/commithash.txt
|
|
if-no-files-found: error
|
|
include-hidden-files: true
|
|
compression-level: 9
|