Skip to content

Commit

Permalink
Modify CI for using install-dependencies from tsurugidb
Browse files Browse the repository at this point in the history
  • Loading branch information
akirakw committed Oct 1, 2023
1 parent 781d068 commit 87ad65d
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,49 @@ 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_Takatori
uses: actions/checkout@v3
if: ${{ inputs.checkout == 'true' }}
with:
repository: project-tsurugi/takatori
path: build-deps/takatori
path: ${{ inputs.path }}/takatori
ref: master
token: ${{ inputs.token }}

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

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

- name: Install_Takatori
run: |
cd build-deps/takatori
cd ${{ inputs.path }}/takatori
rm -fr build
mkdir build
cd build
Expand All @@ -47,7 +56,7 @@ runs:

- name: Install_hopscotch-map
run: |
cd build-deps/yugawara/third_party/hopscotch-map
cd ${{ inputs.path }}/yugawara/third_party/hopscotch-map
rm -fr ../../build-hopscotch-map
mkdir ../../build-hopscotch-map
cd ../../build-hopscotch-map
Expand All @@ -57,7 +66,7 @@ runs:

- name: Install_Yugawara
run: |
cd build-deps/yugawara
cd ${{ inputs.path }}/yugawara
rm -fr build
mkdir build
cd build
Expand All @@ -67,7 +76,7 @@ runs:

- name: Install_Shakujo
run: |
cd build-deps/shakujo
cd ${{ inputs.path }}/shakujo
rm -fr build
mkdir build
cd build
Expand Down

0 comments on commit 87ad65d

Please sign in to comment.