Skip to content

Commit

Permalink
Merge pull request #27 from project-tsurugi/ci-prepare-public-2
Browse files Browse the repository at this point in the history
Modify CI for preparing public - 2nd
  • Loading branch information
akirakw authored Oct 1, 2023
2 parents 170e4eb + 896f554 commit 7f02fcb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
* @kuron99

/.github/ @project-tsurugi/ci-maintainers
21 changes: 15 additions & 6 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,47 @@ inputs:
token:
description: token for checkout private repo
required: true
checkout:
description: Skip checkout if false
default: true
path:
description: Relative path under $GITHUB_WORKSPACE to place the repository
default: build-deps

runs:
using: "composite"

steps:
- name: Checkout_Limestone
uses: actions/checkout@v3
if: ${{ inputs.checkout == 'true' }}
with:
repository: project-tsurugi/limestone
path: build-deps/limestone
path: ${{ inputs.path }}/limestone
ref: master
token: ${{ inputs.token }}

- name: Checkout_Yakushima
uses: actions/checkout@v3
if: ${{ inputs.checkout == 'true' }}
with:
repository: project-tsurugi/yakushima
path: build-deps/yakushima
path: ${{ inputs.path }}/yakushima
ref: master
token: ${{ inputs.token }}

- name: Checkout_Shirakami
uses: actions/checkout@v3
if: ${{ inputs.checkout == 'true' }}
with:
repository: project-tsurugi/shirakami
path: build-deps/shirakami
path: ${{ inputs.path }}/shirakami
ref: master
token: ${{ inputs.token }}

- name: Install_Limestone
run: |
cd build-deps/limestone
cd ${{ inputs.path }}/limestone
rm -fr build
mkdir build
cd build
Expand All @@ -45,7 +54,7 @@ runs:

- name: Install_Yakushima
run: |
cd build-deps/yakushima
cd ${{ inputs.path }}/yakushima
rm -fr build
mkdir build
cd build
Expand All @@ -55,7 +64,7 @@ runs:

- name: Install_Shirakami
run: |
cd build-deps/shirakami
cd ${{ inputs.path }}/shirakami
rm -fr build
mkdir build
cd build
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
checks: write
timeout-minutes: 30
container:
image: ghcr.io/project-tsurugi/oltp-sandbox:${{ matrix.os }}
image: ghcr.io/project-tsurugi/tsurugi-ci:${{ matrix.os }}
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
Expand Down Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
mkdir build
cd build
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/.local -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/.local ..
cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_PREFIX_PATH=${GITHUB_WORKSPACE}/.local ..
cmake --build . --target all --clean-first
- name: CTest
Expand All @@ -65,10 +65,7 @@ jobs:
checks: write
timeout-minutes: 30
container:
image: ghcr.io/project-tsurugi/oltp-sandbox:ubuntu-22.04
credentials:
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_PAT }}
image: ghcr.io/project-tsurugi/tsurugi-ci:ubuntu-22.04
volumes:
- ${{ vars.ccache_dir }}:${{ vars.ccache_dir }}
defaults:
Expand Down

0 comments on commit 7f02fcb

Please sign in to comment.