Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Кэширование зависимостей opm #18

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
22 changes: 18 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
- name: Актуализация
uses: actions/checkout@v4

- uses: actions/cache@v4
id: cache
with:
path: '**/oscript_modules'
key: ${{ runner.os }}-${{ inputs.oscript_version }}-${{ hashFiles('**/packagedef') }}

- name: Установка свойств git
shell: bash
run: |
Expand All @@ -56,11 +62,19 @@ jobs:
with:
version: ${{ steps.extract_oscript_version.outputs.version }}

- name: Обновление opm (win)
if: runner.os == 'Windows'
shell: cmd
run: call opm install opm

- name: Обновление opm (*nix)
if: runner.os != 'Windows'
run: opm install opm

- name: Установка зависимостей
run: |
opm install opm
opm install -l --dev

if: steps.cache.outputs.cache-hit != 'true'
run: opm install -l --dev

- name: Установка дополнительных пакетов
if: inputs.additional_oscript_packages != ''
run: opm install -l ${{ inputs.additional_oscript_packages }}
Expand Down