Skip to content

basic

basic #182

Workflow file for this run

name: basic
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: 0 14 * * 1
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
id: cache
with:
path: |
capstone/
keystone/
glib/
libunwind/
key: ${{ runner.os }}-${{ hashFiles('build.sh') }}
- name: set up python 3.x
if: steps.cache.outputs.cache-hit != 'true'
uses: actions/setup-python@v2
with:
python-version: '3.x'
architecture: 'x64'
- name: install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip meson ninja
- name: build
if: steps.cache.outputs.cache-hit != 'true'
run: |
./build.sh
debug:
runs-on: ubuntu-22.04
needs: [build]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
capstone/
keystone/
glib/
libunwind/
key: ${{ runner.os }}-${{ hashFiles('build.sh') }}
- name: make format
run: make format
working-directory: ./src
- name: make debug
run: |
clang --version
make clean
make debug
working-directory: ./src
- name: make test
run: timeout --signal=KILL 30m make test
working-directory: ./src
release:
runs-on: ubuntu-22.04
needs: [build]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
capstone/
keystone/
glib/
libunwind/
key: ${{ runner.os }}-${{ hashFiles('build.sh') }}
- name: make format
run: make format
working-directory: ./src
- name: make release
run: |
clang --version
make clean
make release
working-directory: ./src
- name: make test
run: timeout --signal=KILL 30m make test
working-directory: ./src