Skip to content

Commit

Permalink
ci github: update version
Browse files Browse the repository at this point in the history
Signed-off-by: John Sanpe <[email protected]>
  • Loading branch information
sanpeqf committed Mar 19, 2024
1 parent 0abcfd0 commit 3b276df
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 40 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,42 @@ 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 git cmake make clang
- name: update submodule
run: |
git submodule update --init --recursive
- 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
29 changes: 20 additions & 9 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,40 @@ 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 git cmake make ccache
- name: update submodule
run: |
git submodule update --init --recursive
- 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
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
- 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
29 changes: 17 additions & 12 deletions .github/workflows/ubuntu-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,35 @@ 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 git cmake make clang ccache
- name: update submodule
run: |
git submodule update --init --recursive
- 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
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
- name: make
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}}
21 changes: 13 additions & 8 deletions .github/workflows/ubuntu-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,35 @@ 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 git cmake make gcc ccache
- name: update submodule
run: |
git submodule update --init --recursive
- 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
- name: make
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}}
24 changes: 18 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,45 @@ 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: git cmake make gcc

- name: update submodule
run: |
git submodule update --init --recursive
- name: configure cmake
run: |
cmake -B build \
cmake -B ${{github.workspace}}/build \
-D CMAKE_INSTALL_PREFIX=build/install \
-D CMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: make
run: cmake --build build --config ${{env.BUILD_TYPE}}
run: |
cmake --build ${{github.workspace}}/build \
--config ${{env.BUILD_TYPE}}
- name: install
run: cmake --build build --config ${{env.BUILD_TYPE}} -- install
run: |
cmake --build ${{github.workspace}}/build \
--config ${{env.BUILD_TYPE}} -- install
2 changes: 1 addition & 1 deletion lib/bfdev

0 comments on commit 3b276df

Please sign in to comment.