Skip to content

Commit

Permalink
Add upload build, no cloning applied
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Sep 20, 2024
1 parent f2011bf commit 49bed83
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 8 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand All @@ -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
16 changes: 13 additions & 3 deletions .github/workflows/build_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -36,4 +40,10 @@ jobs:
./prepare_build.sh &&
cd build &&
make -j8 &&
./aquamarine_ut
./aquamarine_ut
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: aquamarine_build_MacOS
path: aquamarine/build
15 changes: 12 additions & 3 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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/

0 comments on commit 49bed83

Please sign in to comment.