Skip to content

fix: use patch rather than git for patching the vendored modules #8

fix: use patch rather than git for patching the vendored modules

fix: use patch rather than git for patching the vendored modules #8

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- os: "archlinux:base"
pkgs: "gcc"
env: "CC=gcc CXX=g++"
- os: "archlinux:base"
pkgs: "clang"
env: "CC=clang CXX=clang++"
container:
image: ${{ matrix.os }}
steps:
- name: prep archlinux
if: startsWith(matrix.os, 'archlinux')
run: |
pacman -Syu --needed --noconfirm \
${{ matrix.pkgs }} bison cmake expat flex fmt git gtest \
libpng ninja pkgconf protobuf
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Prepare
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
- name: Build
run: |
test -n "${{ matrix.env }}" && export ${{ matrix.env }}
cmake -B build -G Ninja
cmake --build build
- name: Check
run: |
./build/vendor/aapt version
./build/vendor/aapt2 version
mingw:
runs-on: windows-latest
strategy:
matrix:
msystem: [clang64, ucrt64]
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
install: base-devel git
pacboy: cc cmake expat fmt gtest libpng ninja pkgconf protobuf
- name: Prepare
run: |
git submodule update --init --depth 1
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
cd vendor/core
git config core.symlinks true
MSYS='winsymlinks:nativestrict' git restore --source=HEAD :/ || true
- name: Build
run: |
cmake -B build -G Ninja
cmake --build build
- name: Check
run: |
./build/vendor/aapt version
./build/vendor/aapt2 version