๐ก English
์๋ฐ์คํฌ๋ฆฝํธ๋ฅผ ์ด์ฉํ ์ํฌ์คํ์ด์ค ๋น์ฐ๊ธฐ ์ก์
์
๋๋ค. Self-hosted runner์์ ์ฌ์ฉํ๊ธฐ์ ์ ์ฉํฉ๋๋ค.
์๋ฐ์คํฌ๋ฆฝํธ๋ฅผ ์ด์ฉํ๊ธฐ ๋๋ฌธ์ ์ด๋ ํ OS์์๋ ์๋ํฉ๋๋ค.
์ํฌ์คํ์ด์ค๋ฅผ ๋น์๋๋ค. ์ํฌ์คํ์ด์ค ๊ฒฝ๋ก๋ ํ๊ฒฝ ๋ณ์๋ฅผ ์ด์ฉํฉ๋๋ค. (GITHUB_WORKSPACE)
# ...
name: Some workflows
jobs:
build:
name: Some build
runs-on: macos-latest
steps:
- uses: yumis-coconudge/[email protected]
# ...
additional-path์ ์ด์ฉํ๋ฉด ์ํฌ์คํ์ด์ค์ ํจ๊ป ํน์ ๋๋ ํ ๋ฆฌ ๋๋ ํ์ผ๋ค์ ๊ฐ์ด ๋น์๋๋ค.
์กด์ฌํ์ง ์์ ํ์ผ์ ๋ฌด์๋ฉ๋๋ค.
๊ฒฝ๊ณ : ์๋ชป๋ ๊ฒฝ๋ก๋ฅผ ์ฌ์ฉํ๊ฒ๋๋ฉด ๋ณต๊ตฌํ ์ ์์ต๋๋ค. ์กฐ์ฌํ์ธ์.
# ...
name: Some workflows
jobs:
build:
name: Some build
runs-on: macos-latest
steps:
- name: Get yarn cache directory.
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
# ์ํฌ์คํ์ด์ค์ Yarn ์บ์ ๊ฒฝ๋ก๋ฅผ ์ ๋ฆฌํฉ๋๋ค.
- uses: yumis-coconudge/[email protected]
with:
additional-path: "${{ steps.yarn-cache-dir-path.outputs.dir }}"
# ...
์ฌ๋ฌ ํ์ผ์ ์ฌ์ฉํ๊ณ ์ถ๋ค๋ฉด, ","๋ก ๋ถ๋ฆฌํ ์ ์์ต๋๋ค.
๋ํ, glob ํจํด์ ์ง์ํฉ๋๋ค.
# ...
name: Some workflows
jobs:
build:
name: Some build
runs-on: macos-latest
steps:
- name: Get yarn cache directory.
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: yumis-coconudge/[email protected]
with:
additional-path: "~/a.txt,~/b.txt"
# ...