From c09c9686eb353780728af926250ac2e303163a51 Mon Sep 17 00:00:00 2001 From: Timofey Shalnev <99738815+extio1@users.noreply.github.com> Date: Tue, 28 May 2024 21:14:54 +0700 Subject: [PATCH] Update on_pull_request.yml --- .github/workflows/on_pull_request.yml | 34 ++++++++++++++++++--------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/.github/workflows/on_pull_request.yml b/.github/workflows/on_pull_request.yml index 541c37f..8f09232 100644 --- a/.github/workflows/on_pull_request.yml +++ b/.github/workflows/on_pull_request.yml @@ -7,32 +7,37 @@ on: - 'dev' jobs: - install-dependencies: + download-dependencies: runs-on: ubuntu-latest steps: - run: mkdir install-artifacts - - name: Install dependencies + - name: Download dependencies run: | wget https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.gz tar -xzf boost_1_80_0.tar.gz - cd boost_1_80_0 - ./bootstrap.sh --with-libraries=serialization - sudo ./b2 install + - name: Save artifacts uses: actions/upload-artifact@v4 with: - path: install-artifacts + name: dependencies-artifact + path: boost_1_80_0 build: - needs: [install-dependencies] + needs: [download-dependencies] runs-on: ubuntu-latest steps: - - run: ls - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 with: - path: install-artifacts + name: dependencies-artifact + path: boost_1_80_0 + + - name: Install Boost + run: | + cd boost_1_80_0 + ./bootstrap.sh --with-libraries=serialization + sudo ./b2 install - name: Build project run: | @@ -47,7 +52,7 @@ jobs: path: build test: - needs: [build, install-dependencies] + needs: [build, download-dependencies] runs-on: ubuntu-latest steps: @@ -58,7 +63,14 @@ jobs: path: build - uses: actions/download-artifact@v4 with: - path: install-artifacts + name: dependencies-artifact + path: boost_1_80_0 + + - name: Install Boost + run: | + cd boost_1_80_0 + ./bootstrap.sh --with-libraries=serialization + sudo ./b2 install - name: Add lanch permissions for text executables run: |