Skip to content

Commit

Permalink
Update on_pull_request.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
extio1 authored May 28, 2024
1 parent da33342 commit c09c968
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -47,7 +52,7 @@ jobs:
path: build

test:
needs: [build, install-dependencies]
needs: [build, download-dependencies]
runs-on: ubuntu-latest

steps:
Expand All @@ -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: |
Expand Down

0 comments on commit c09c968

Please sign in to comment.