Skip to content

Commit

Permalink
Upload build artifacts to CI
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed May 8, 2024
1 parent ae316c8 commit 52de64a
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,35 @@ jobs:
run: |
apt-get update -qq
apt-get install -yqq g++ libgtk2.0-dev libgtk-3-dev liblilv-dev lv2-dev libx11-dev make pkg-config
- name: Regular build
- name: Run tests (C)
env:
CFLAGS: -Werror
CXXFLAGS: -Werror
run: |
make clean >/dev/null
make -j $(nproc)
- name: Run tests (C)
make test -j $(nproc) && ./test
- name: Run tests (C++)
env:
CFLAGS: -Werror
CXXFLAGS: -Werror
run: |
make clean >/dev/null
make test -j $(nproc) && ./test
- name: Run tests (C++)
make testxx -j $(nproc) && ./testxx
- name: Regular build
env:
CFLAGS: -Werror
CXXFLAGS: -Werror
run: |
make clean >/dev/null
make testxx -j $(nproc) && ./testxx
make -j $(nproc)
- name: Set sha8
run: |
echo "SHA8=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-macOS-${{ matrix.container }}-${{ github.event.pull_request.number || env.SHA8 }}
path: |
*.lv2
macos:
strategy:
Expand All @@ -63,24 +71,32 @@ jobs:
- name: Set up dependencies
run: |
brew install gtk+ gtk+3 lilv make pkg-config
- name: Regular build
- name: Run tests (C)
env:
CFLAGS: -Werror
CXXFLAGS: -Werror
run: |
make clean >/dev/null
make -j $(sysctl -n hw.logicalcpu)
- name: Run tests (C)
make test -j $(sysctl -n hw.logicalcpu) && ./test
- name: Run tests (C++)
env:
CFLAGS: -Werror
CXXFLAGS: -Werror
run: |
make clean >/dev/null
make test -j $(sysctl -n hw.logicalcpu) && ./test
- name: Run tests (C++)
make testxx -j $(sysctl -n hw.logicalcpu) && ./testxx
- name: Regular build
env:
CFLAGS: -Werror
CXXFLAGS: -Werror
run: |
make clean >/dev/null
make testxx -j $(sysctl -n hw.logicalcpu) && ./testxx
make -j $(sysctl -n hw.logicalcpu)
- name: Set sha8
run: |
echo "SHA8=$(echo ${{ github.sha }} | cut -c1-8)" >> $GITHUB_ENV
- uses: actions/upload-artifact@v4
with:
name: ${{ github.event.repository.name }}-macOS-${{ matrix.target }}-${{ github.event.pull_request.number || env.SHA8 }}
path: |
*.lv2

0 comments on commit 52de64a

Please sign in to comment.