feat: add push_packages workflow #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: ✅ Checkout repository | |
uses: actions/checkout@v4 | |
with: { fetch-depth: 0 } | |
- name: 🧪 Run unit tests | |
run: ./build.sh unit-test --html-test-results | |
- name: 💾 Upload test results to artifact storage | |
uses: actions/upload-artifact@v4 | |
with: | |
name: test_results | |
path: artifacts/test_results/* | |
build: | |
runs-on: ubuntu-22.04 | |
needs: test | |
steps: | |
- name: ✅ Checkout repository | |
uses: actions/checkout@v4 | |
with: { fetch-depth: 0 } | |
- name: 🛠️ Run release build | |
run: ./build.sh pack --configuration Release --copy-libs-output | |
- name: 💾 Upload build artifacts 1/2 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: packages | |
path: artifacts/pkg/* | |
- name: 💾 Upload build artifacts 2/2 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: libraries | |
path: artifacts/lib/* |