Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
1a1a11a authored Nov 21, 2023
1 parent 6a57d34 commit 2b730cc
Showing 1 changed file with 18 additions and 44 deletions.
62 changes: 18 additions & 44 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,35 @@
name: build

on: [push, pull_request]
# push:
# branches: [master, develop]
# pull_request:
# branches: [master, develop]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
# gcc7:
# name: bionic / gcc-7
# runs-on: ubuntu-18.04
# env:
# CC: gcc
# steps:
# - uses: actions/checkout@v2
# - name: Prepare1
# run: sudo apt install libglib2.0-dev libgoogle-perftools-dev build-essential cmake google-perftools
# - name: Prepare2
# run: bash scripts/setup.sh
# - name: Configure CMake
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
# - name: Build
# run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
# - name: Run
# run: make test

# macos:
# name: macos / clang
# runs-on: macos-10.15
# env:
# CC: clang
# steps:
# - uses: actions/checkout@v2
# - name: Prepare1
# run: brew install gcc glib google-perftools libomp
# - name: Prepare2
# run: bash scripts/setup.sh
# - name: Configure CMake
# run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
# - name: build
# run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
# - name: Run
# continue-on-error: true
# run: make test
macos:
name: macos / clang
runs-on: macos-10.22
env:
CC: clang
steps:
- uses: actions/checkout@v2
- name: Prepare1
run: brew install gcc glib google-perftools libomp
- name: Prepare
run: bash scripts/install_dependency.sh
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}}

ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# - name: Prepare1
# run: sudo apt install -yqq libunwind-dev
# - name: Prepare2
# run: sudo apt install -yqq libglib2.0-dev libgoogle-perftools-dev build-essential cmake google-perftools
- name: Prepare
run: bash scripts/install_dependency.sh
- name: Configure CMake
Expand Down

0 comments on commit 2b730cc

Please sign in to comment.