Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpeqf committed Mar 26, 2024
2 parents d055e6e + f6f4dad commit 5445196
Show file tree
Hide file tree
Showing 97 changed files with 2,651 additions and 1,401 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 0
16 changes: 12 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,38 @@ on:

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
name: Analyze on ${{matrix.os}}
runs-on: ${{matrix.os}}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
language: [ 'cpp' ]

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: install dependencies
run: |
sudo apt update
sudo apt install cmake make clang
- name: initialize codeql
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
languages: ${{matrix.language}}

- name: autobuild
uses: github/codeql-action/autobuild@v2

- name: perform analysis
uses: github/codeql-action/analyze@v2
with:
Expand Down
31 changes: 21 additions & 10 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,41 @@ env:

jobs:
build:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: Test on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [macos-latest]

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: install dependencies
run: |
brew update
brew install cmake make ccache
- name: configure cmake
run: |
cmake -B ${{github.workspace}}/build \
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-D CMAKE_C_COMPILER=/usr/local/opt/ccache/libexec/clang \
-D BFDEV_DEVEL=ON
cmake -B ${{github.workspace}}/build \
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-D CMAKE_C_COMPILER=/usr/local/opt/ccache/libexec/clang \
-D BFDEV_DEVEL=ON
- name: make
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
run: |
cmake --build ${{github.workspace}}/build \
--config ${{env.BUILD_TYPE}}
- name: install
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -- install
run: |
cmake --build ${{github.workspace}}/build \
--config ${{env.BUILD_TYPE}} -- install
- name: ctest
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -V
33 changes: 22 additions & 11 deletions .github/workflows/ubuntu-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,42 @@ env:

jobs:
build:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: Test on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-20.04]

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: install dependencies
run: |
sudo apt update
sudo apt install cmake make clang ccache
- name: configure cmake
run: |
cmake -B ${{github.workspace}}/build \
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-D CMAKE_C_COMPILER=/usr/lib/ccache/clang \
-D BFDEV_DEVEL=ON
cmake -B ${{github.workspace}}/build \
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-D CMAKE_C_COMPILER=/usr/lib/ccache/clang \
-D BFDEV_DEVEL=ON
- name: make
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
run: |
cmake --build ${{github.workspace}}/build \
--config ${{env.BUILD_TYPE}}
- name: install
working-directory: ${{github.workspace}}/build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -- install
run: |
cmake --build ${{github.workspace}}/build \
--config ${{env.BUILD_TYPE}} -- install
- name: ctest
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -V
23 changes: 17 additions & 6 deletions .github/workflows/ubuntu-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,42 @@ env:

jobs:
build:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: Test on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-20.04]

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: install dependencies
run: |
sudo apt update
sudo apt install cmake make gcc ccache
- name: configure cmake
run: |
cmake -B ${{github.workspace}}/build \
-D CMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-D CMAKE_C_COMPILER=/usr/lib/ccache/gcc \
-D BFDEV_DEVEL=ON
- name: make
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
run: |
cmake --build ${{github.workspace}}/build \
--config ${{env.BUILD_TYPE}}
- name: install
working-directory: ${{github.workspace}}/build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} -- install
run: |
cmake --build ${{github.workspace}}/build \
--config ${{env.BUILD_TYPE}} -- install
- name: ctest
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -V
14 changes: 11 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,42 @@ env:

jobs:
build:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
name: Test on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [windows-latest]

defaults:
run:
shell: msys2 {0}

steps:
- name: checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: install dependencies
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: cmake make gcc

- name: configure cmake
run: |
cmake -B build \
-D CMAKE_INSTALL_PREFIX=build/install \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-D BFDEV_EXAMPLES=ON
- name: make
run: cmake --build build --config ${{env.BUILD_TYPE}}

- name: install
run: cmake --build build --config ${{env.BUILD_TYPE}} -- install

- name: ctest
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} -V
Loading

0 comments on commit 5445196

Please sign in to comment.