From 3b276dfc535fc223bb3cb8f4840586913d1e81d7 Mon Sep 17 00:00:00 2001 From: John Sanpe Date: Tue, 19 Mar 2024 21:58:30 +0800 Subject: [PATCH] ci github: update version Signed-off-by: John Sanpe --- .github/workflows/codeql.yml | 17 +++++++++++++---- .github/workflows/macos.yml | 29 ++++++++++++++++++++--------- .github/workflows/ubuntu-clang.yml | 29 +++++++++++++++++------------ .github/workflows/ubuntu-gcc.yml | 21 +++++++++++++-------- .github/workflows/windows.yml | 24 ++++++++++++++++++------ lib/bfdev | 2 +- 6 files changed, 82 insertions(+), 40 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 3b9540e..70414c5 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -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: diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 9c8d00c..ab21f52 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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 diff --git a/.github/workflows/ubuntu-clang.yml b/.github/workflows/ubuntu-clang.yml index f6ac4e9..1d04327 100644 --- a/.github/workflows/ubuntu-clang.yml +++ b/.github/workflows/ubuntu-clang.yml @@ -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}} diff --git a/.github/workflows/ubuntu-gcc.yml b/.github/workflows/ubuntu-gcc.yml index 0d51853..536c03c 100644 --- a/.github/workflows/ubuntu-gcc.yml +++ b/.github/workflows/ubuntu-gcc.yml @@ -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}} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 4b3f17d..80801c7 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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 diff --git a/lib/bfdev b/lib/bfdev index 48b8745..ed6879b 160000 --- a/lib/bfdev +++ b/lib/bfdev @@ -1 +1 @@ -Subproject commit 48b8745409150feb67338368bf9762c609624057 +Subproject commit ed6879b25705e98b091ca8d35ca4b6e921f0087e