[GitHub Actions] Windows: Install Gettext tools #5840
Workflow file for this run
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
name: ArchLinux | |
on: | |
push: | |
branches-ignore: | |
- 'l10n_**' # Push events to translation service branches (that begin with "l10n_") | |
pull_request: | |
# Match all pull requests... | |
paths-ignore: | |
# Except some text-only files / documentation | |
- 'ChangeLog' | |
# Except those that only include changes to stats | |
- 'data/base/stats/**' | |
- 'data/mp/stats/**' | |
- 'data/mp/multiplay/script/functions/camTechEnabler.js' | |
jobs: | |
archlinux-latest-gcc: | |
strategy: | |
matrix: | |
include: | |
- name: "Arch :LATEST [GCC]" | |
compiler: 'gcc' | |
cc: '/usr/bin/gcc' | |
cxx: '/usr/bin/g++' | |
- name: "Arch :LATEST [Clang]" | |
compiler: 'clang' | |
cc: '/usr/bin/clang' | |
cxx: '/usr/bin/clang++' | |
fail-fast: false | |
name: '${{ matrix.name }}' | |
permissions: | |
contents: read | |
env: | |
# Since this workflow doesn't build any artifacts for distribution, set WZ_CI_DISABLE_BASIS_COMPRESS_TEXTURES to speed up the job | |
WZ_CI_DISABLE_BASIS_COMPRESS_TEXTURES: ON | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[ci skip]')" | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
path: 'src' | |
- name: Prepare Git Repo for autorevision | |
working-directory: '${{ github.workspace }}/src' | |
run: cmake -P .ci/githubactions/prepare_git_repo.cmake | |
- name: Init Git Submodules | |
working-directory: '${{ github.workspace }}/src' | |
run: git submodule update --init --recursive | |
- name: Build the Docker image | |
working-directory: '${{ github.workspace }}/src' | |
run: | | |
docker build --build-arg UID=$UID -f docker/archlinux-latest/Dockerfile -t archlinux . | |
- name: Prep Directories | |
run: | | |
mkdir -p "${{ github.workspace }}/build" | |
- name: CMake Configure | |
working-directory: '${{ github.workspace }}/build' | |
env: | |
CC: ${{ matrix.cc }} | |
CXX: ${{ matrix.cxx }} | |
run: | | |
echo "::add-matcher::${GITHUB_WORKSPACE}/src/.ci/githubactions/pattern_matchers/cmake.json" | |
docker run --rm -w "${GITHUB_WORKSPACE}/build" -e WZ_CI_DISABLE_BASIS_COMPRESS_TEXTURES -e CC -e CXX -e "CI=true" -e GITHUB_WORKFLOW -e GITHUB_ACTIONS -e GITHUB_REPOSITORY -e GITHUB_WORKSPACE -e GITHUB_SHA -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e MAKEFLAGS -v "${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}" archlinux cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DWZ_ENABLE_WARNINGS:BOOL=ON -G"Ninja" "${{ github.workspace }}/src" | |
echo "::remove-matcher owner=cmake::" | |
- name: CMake Build | |
working-directory: '${{ github.workspace }}/build' | |
env: | |
CC: ${{ matrix.cc }} | |
CXX: ${{ matrix.cxx }} | |
run: | | |
if [ "$WZ_COMPILER" == "clang" ]; then | |
echo "::add-matcher::${GITHUB_WORKSPACE}/src/.ci/githubactions/pattern_matchers/clang.json" | |
else | |
echo "::add-matcher::${GITHUB_WORKSPACE}/src/.ci/githubactions/pattern_matchers/gcc.json" | |
fi | |
docker run --rm -w "${GITHUB_WORKSPACE}/build" -e WZ_CI_DISABLE_BASIS_COMPRESS_TEXTURES -e CC -e CXX -e "CI=true" -e GITHUB_WORKFLOW -e GITHUB_ACTIONS -e GITHUB_REPOSITORY -e GITHUB_WORKSPACE -e GITHUB_SHA -e GITHUB_REF -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e MAKEFLAGS -v "${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}" archlinux cmake --build . -- -k0 | |
if [ "$WZ_COMPILER" == "clang" ]; then | |
echo "::remove-matcher owner=clang::" | |
else | |
echo "::remove-matcher owner=gcc::" | |
fi |