diff --git a/.gitea/workflows/linux.yml b/.gitea/workflows/linux.yml index 4f065dce..c9384343 100644 --- a/.gitea/workflows/linux.yml +++ b/.gitea/workflows/linux.yml @@ -4,7 +4,7 @@ on: push: branches: - master - - miami + # miami (reVC) gets its own adapted workflow — REVC_* options, reVC target; see tracker issue #3. pull_request: workflow_dispatch: @@ -16,23 +16,26 @@ jobs: build: runs-on: ubuntu-latest steps: - # Full history and recursive submodules are required: CMakeLists.txt calls - # get_git_head_revision() (needs the git history) and vendor/librw, vendor/ogg, - # vendor/opus, vendor/opusfile are git submodules. + # Recursive submodules are required: vendor/librw, vendor/ogg, vendor/opus and + # vendor/opusfile are git submodules. fetch-depth: 0 is kept as a safe default; + # get_git_head_revision() only reads .git/HEAD and the ref, so full history is + # not strictly needed, but a full clone avoids shallow-clone edge cases. - name: Checkout uses: actions/checkout@v4 with: submodules: recursive fetch-depth: 0 + # act_runner images run as root without sudo; install directly. - name: Install build deps run: | - sudo apt-get update - sudo apt-get install -y --no-install-recommends \ + apt-get update + DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ build-essential \ cmake \ ninja-build \ pkg-config \ + file \ libglfw3-dev \ libopenal-dev \ libsndfile1-dev \ @@ -56,7 +59,10 @@ jobs: - name: Smoke check run: | - BIN="$(find build -type f -name re3 -perm -u+x | head -1 || true)" + BIN=build/src/re3 + if [ ! -x "$BIN" ]; then + BIN="$(find build -type f -name re3 -perm -u+x | head -1 || true)" + fi if [ -z "$BIN" ]; then echo "error: no re3 executable found under build/" >&2 find build -maxdepth 3 -type f | sort >&2 || true @@ -72,4 +78,3 @@ jobs: name: re3-linux-x64-gl3-oal path: artifact/ if-no-files-found: error - retention-days: 14