mirror of
https://github.com/jarro2783/cxxopts.git
synced 2026-01-18 01:11:24 +01:00
* fix: Use non deprecated upload-artifact action version * fix: Use branch name in build workflow, use latest checkout action, use cd bulid as job steps doesn't preserve current directories between themselves. * fix: remove non-existent main branch, remove deprecated ubuntu-20, removed deprecated macos-11 and macos-12, setup g++-9 and g++-10 if not exists, use latest checkout action
25 lines
396 B
YAML
25 lines
396 B
YAML
name: Build cxxopts
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: setup
|
|
run: mkdir build
|
|
- name: cmake
|
|
run: cd build; cmake ..
|
|
- name: Build
|
|
run: cd build; make -j$(nproc)
|
|
- name: test
|
|
run: cd build; ctest
|