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: |