Skip to content

feat: Add CI/CD and release workflows #1

feat: Add CI/CD and release workflows

feat: Add CI/CD and release workflows #1

Workflow file for this run

name: build
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- os: Linux
runner: ubuntu-latest
- os: macOS
runner: macos-latest
- os: Windows
runner: windows-latest
env:
IDASDK: ${{ github.workspace }}/ida-sdk/src
VCPKG_DEFAULT_TRIPLET: ${{ matrix.os == 'Windows' && 'x64-windows' || matrix.os == 'macOS' && 'arm64-osx' || 'x64-linux' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: '01f602195983451bc83e72f4214af2cbc495aa94'
- name: Setup IDA SDK
shell: bash
run: |
git clone --depth 1 https://github.com/HexRaysSA/ida-sdk ida-sdk
git clone --depth 1 https://github.com/allthingsida/ida-cmake.git "${IDASDK}/ida-cmake"
- name: Configure
shell: bash
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE="${VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
- name: Build
shell: bash
run: cmake --build build --config Release