Repository navigation
Apple xcframeworks: merge archives built for only one arch (KleidiCV arm64) into the universal archive #42
Workflow file for this run
This file contains hidden or 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
| name: build-linux-openal-modular | |
| on: | |
| pull_request: | |
| paths: ['apothecary/formulas/openal/**', '.github/workflows/build-linux-openal-modular.yml', 'scripts/modular-cache-key.sh', 'scripts/package-individual.sh', 'scripts/export_config.sh', 'apothecary/apothecary'] | |
| push: | |
| branches: [bleeding, master] | |
| paths: ['apothecary/formulas/openal/**', '.github/workflows/build-linux-openal-modular.yml', 'scripts/modular-cache-key.sh', 'scripts/package-individual.sh', 'scripts/export_config.sh', 'apothecary/apothecary'] | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ startsWith(github.ref, 'refs/tags/') && github.run_id || github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') }} | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| name: openal Linux ${{ matrix.arch }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - {arch: '64', runner: ubuntu-24.04} | |
| - {arch: arm64, runner: ubuntu-24.04-arm} | |
| runs-on: ${{ matrix.runner }} | |
| env: | |
| TARGET: linux | |
| TYPE: linux | |
| ARCH: ${{ matrix.arch }} | |
| GCC: gcc14 | |
| GCC_VERSION: '14' | |
| CC: gcc-14 | |
| CXX: g++-14 | |
| NO_COLOR: '1' | |
| UI_ANIM: '0' | |
| NO_FORCE: '1' | |
| PACKAGE_LIBS: openal | |
| ALWAYS_BUILD: '1' | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y autoconf automake build-essential cmake curl gcc-14 g++-14 git libtool pkg-config python3-venv unzip libasound2-dev libpulse-dev libjack-jackd2-dev | |
| python3 -m venv "$RUNNER_TEMP/build-tools" | |
| "$RUNNER_TEMP/build-tools/bin/pip" install meson==1.12.1 ninja packaging mako pyyaml | |
| echo "$RUNNER_TEMP/build-tools/bin" >> "$GITHUB_PATH" | |
| - name: Record exact native build context | |
| run: | | |
| context="$RUNNER_TEMP/openal-context" | |
| { | |
| "$CC" --version | |
| "$CXX" --version | |
| cmake --version | |
| meson --version | |
| ninja --version | |
| dpkg-query -W | |
| git hash-object .github/workflows/build-linux-openal-modular.yml | |
| } > "$context" | |
| echo "PLATFORM_ARTIFACT_CONTEXT=$context" >> "$GITHUB_ENV" | |
| - name: Compute modular cache key | |
| id: key | |
| run: bash scripts/modular-cache-key.sh openal >> "$GITHUB_OUTPUT" | |
| - uses: actions/cache/restore@v6.1.0 | |
| id: cache | |
| with: | |
| key: ${{ steps.key.outputs.key }} | |
| path: out/openal | |
| - name: Build library | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: ./apo update openal | |
| - name: Check headers, pkg-config and target linking | |
| run: | | |
| export PKG_CONFIG_PATH="$PWD/out/openal/lib/linux/$ARCH/pkgconfig" | |
| test -f "$PKG_CONFIG_PATH/openal.pc" | |
| pkg-config --exists openal | |
| printf '#include <AL/al.h>\nint main(void) { (void)alGetEnumValue("AL_GAIN"); return 0; }\n' > "$RUNNER_TEMP/openal-smoke.c" | |
| "$CC" "$RUNNER_TEMP/openal-smoke.c" $(pkg-config --cflags --libs openal) -o "$RUNNER_TEMP/openal-smoke" | |
| export LD_LIBRARY_PATH="$PWD/out/openal/lib/linux/$ARCH:$PWD/out/openal/lib/linux/$ARCH/pulseaudio:${LD_LIBRARY_PATH:-}" | |
| "$RUNNER_TEMP/openal-smoke" | |
| - name: Package modular library | |
| run: bash scripts/package-individual.sh | |
| - uses: actions/cache/save@v6.1.0 | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| with: | |
| key: ${{ steps.key.outputs.key }} | |
| path: out/openal | |
| - uses: actions/upload-artifact@v7.0.2 | |
| with: | |
| name: openal-linux-${{ matrix.arch }}-gcc14 | |
| path: out/oF_openal_linux_${{ matrix.arch }}_gcc14.tar.bz2 | |
| if-no-files-found: error | |
| - name: Publish latest-modular asset | |
| if: github.event_name == 'push' && github.repository == 'openframeworks/apothecary' | |
| env: | |
| GH_TOKEN: ${{ secrets.PAT_TOKEN || secrets.GITHUB_TOKEN }} | |
| run: gh release upload latest-modular "out/oF_openal_linux_${ARCH}_gcc14.tar.bz2" --clobber --repo "$GITHUB_REPOSITORY" |