Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
5.0 kB · 152 lines
YAML
at stack/acme
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153name: build
on: pull_request: push: branches: - next
concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true
jobs: linux: name: ${{ matrix.name }} runs-on: ubuntu-latest strategy: matrix: include: - name: linux-amd64 cmd: >- make linux-amd64 && make test-vod && make static-test && make check && make ci-lexicons - name: linux-arm64 cmd: "make linux-arm64" - name: windows-amd64 cmd: "make windows-amd64 && make desktop-windows-amd64" - name: android cmd: "make app && make android-release" steps: - name: Maximize build space run: | sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL
- name: Check out code uses: actions/checkout@v4.1.7 with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }}
- name: mise check if: matrix.name == 'linux-amd64' uses: jdx/mise-action@v2 with: install: true
- name: Log in to the Container registry uses: docker/login-action@v2 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ github.token }}
- name: make node run: | sudo apt install podman -y # Ubuntu 24.04's crun (1.14.1) rejects the OCI spec version newer # podman emits ("unknown version specified", fixed in crun >= 1.14.3), # and the 20260726 runner image update made that pairing fatal. sudo curl -fsSL -o /usr/bin/crun https://github.com/containers/crun/releases/download/1.28/crun-1.28-linux-amd64 sudo chmod +x /usr/bin/crun make in-container BUILDER_TARGET=builder-no-darwin DOCKER_PWD_MOUNT_PATH=/app DOCKER_BUILD_OPTS="--layers --cache-to ghcr.io/streamplace/streamplace --cache-from ghcr.io/streamplace/streamplace" DOCKER_OPTS="-e STREAMPLACE_IGNORE_LEAKS=true -e STREAMPLACE_TEST_COUNT=1 -e CI=true -e GITHUB_ACTION=true" IN_CONTAINER_CMD="${{ matrix.cmd }}"
- name: Publish Test Report if: matrix.name == 'linux-amd64' && (success() || failure()) uses: mikepenz/action-junit-report@v5 with: report_paths: "test.xml"
- name: Upload bin artifacts if: matrix.name == 'windows-amd64' uses: actions/upload-artifact@v4 with: name: windows-bin-${{ github.event.pull_request.head.sha }} path: ./bin/ retention-days: 1
# windows-selftest: # name: windows-selftest # runs-on: windows-latest # needs: linux # steps: # - name: Download bin artifacts # uses: actions/download-artifact@v4 # with: # name: windows-bin-${{ github.event.pull_request.head.sha }} # path: ./bin/
# - name: Run Windows executable # shell: bash # run: | # set -euo pipefail # set -x AQD_NO_UPDATE=true # set -x STREAMPLACE_TEST_SERIES=true # echo "running $PWD/bin/*.exe" # ./bin/*.exe # powershell -Command "Stop-Process -Name Streamplace" # cd "$LOCALAPPDATA/streamplace_desktop" # cd app-* # ./Streamplace.exe -- --self-test
darwin: name: ${{ matrix.name }} runs-on: ${{ matrix.runs-on }} strategy: matrix: include: - name: darwin-arm64 runs-on: macos-15 cmd: make && make test && make check xcode-version: "16.4" - name: ios runs-on: macos-26 cmd: make ios xcode-version: "26.3" - name: darwin-amd64 runs-on: macos-15-intel cmd: make xcode-version: "16.4" steps: - name: Check out code uses: actions/checkout@v4.1.7 with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v4 with: node-version: 22
- uses: maxim-lobanov/setup-xcode@v1 with: xcode-version: ${{ matrix.xcode-version }}
- name: Build Streamplace env: STREAMPLACE_TEST_COUNT: "1" STREAMPLACE_IGNORE_LEAKS: "true" NODE_OPTIONS: "--max_old_space_size=4096" run: | npm install -g corepack@latest \ && corepack enable \ && export GOTOOLCHAIN=go1.26.5 \ && brew install go llvm \ && rustup target add wasm32-wasip1 \ && rustup target add wasm32-unknown-unknown \ && python -m pip install virtualenv \ && python -m virtualenv ~/venv \ && source ~/venv/bin/activate \ && python -m pip install meson \ && PATH="/opt/homebrew/opt/llvm/bin:$PATH" \ && ${{ matrix.cmd }}