diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml index 8666a80..d8f0267 100644 --- a/.github/workflows/build_linux.yml +++ b/.github/workflows/build_linux.yml @@ -18,8 +18,14 @@ jobs: - uses: actions/checkout@v3 - name: Install packages run: sudo apt -y install git g++ cmake libsqlite3-dev gcovr libjpeg-dev - - name: Clone aquamarine repo - run: git clone --branch ${{ github.head_ref }} https://github.com/MaksymT17/aquamarine.git + + - name: Checkout silber repo + uses: actions/checkout@v3 + with: + repository: MaksymT17/aquamarine + ref: ${{ github.head_ref }} # Use the head reference of the pull request + path: aquamarine + - name: Build artifacts with Cmake run: | cd aquamarine && @@ -38,3 +44,9 @@ jobs: with: check_name: Unit test results files: "**/test_detail.xml" + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: aquamarine_build_Linux + path: aquamarine/build diff --git a/.github/workflows/build_mac.yml b/.github/workflows/build_mac.yml index 91fb6f5..ff74b83 100644 --- a/.github/workflows/build_mac.yml +++ b/.github/workflows/build_mac.yml @@ -22,8 +22,12 @@ jobs: run: | brew install git gcc cmake sqlite3 gcovr jpeg - - name: Clone aquamarine repo - run: git clone --branch ${{ github.head_ref }} https://github.com/MaksymT17/aquamarine.git + - name: Checkout silber repo + uses: actions/checkout@v3 + with: + repository: MaksymT17/silber + ref: ${{ github.head_ref }} + path: silber - name: Build artifacts with Cmake run: | @@ -36,4 +40,10 @@ jobs: ./prepare_build.sh && cd build && make -j8 && - ./aquamarine_ut \ No newline at end of file + ./aquamarine_ut + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: aquamarine_build_MacOS + path: aquamarine/build \ No newline at end of file diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml index f9345af..e995153 100644 --- a/.github/workflows/build_windows.yml +++ b/.github/workflows/build_windows.yml @@ -11,9 +11,12 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Clone aquamarine repo - run: git clone --branch ${{ github.head_ref }} https://github.com/MaksymT17/aquamarine.git - shell: bash + - name: Checkout aquamarine repo + uses: actions/checkout@v3 + with: + repository: MaksymT17/aqumarine + ref: ${{ github.head_ref }} + path: aqumarine - name: Build artifacts with Cmake run: | @@ -27,3 +30,9 @@ jobs: cmake --build . && echo "Build complete!" shell: bash + + - name: Upload build artifacts + uses: actions/upload-artifact@v3 + with: + name: aquamarine_build_Windows + path: aquamarine/build/ \ No newline at end of file