Compare commits

..

7 Commits

Author SHA1 Message Date
tequ
2e4e5eaff1 install cmake 2025-11-26 02:18:26 +09:00
tequ
2e96ae905d install python if not installed (ubuntu/self-hosted) 2025-11-26 02:11:40 +09:00
tequ
d02af3c891 rever macos runner 2025-11-26 01:37:36 +09:00
tequ
6f559a6032 use hosted runner in light workflow 2025-11-26 00:18:08 +09:00
tequ
9980e8f9be fix to use self-hosted for subsequent jobs. 2025-11-26 00:17:38 +09:00
Wietse Wind
fe17dde005 Update workers to self hosted 2025-11-26 00:14:15 +09:00
tequ
4eb1e4105a Revert "Update workers to self hosted"
This reverts commit c42cb0df62.
2025-11-26 00:12:45 +09:00
6 changed files with 25 additions and 10 deletions

View File

@@ -18,10 +18,11 @@ runs:
using: 'composite' using: 'composite'
steps: steps:
- name: Get commit message and set environment variable - name: Get commit message and set environment variable
shell: python shell: bash
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
run: | run: |
python3 - << 'PY'
import json import json
import os import os
import secrets import secrets
@@ -72,3 +73,4 @@ runs:
print(f"✓ XAHAU_GA_COMMIT_MSG set (available to all subsequent steps)") print(f"✓ XAHAU_GA_COMMIT_MSG set (available to all subsequent steps)")
print("==========================================") print("==========================================")
PY

View File

@@ -33,7 +33,7 @@ jobs:
fetch-depth: 2 # Only get the last 2 commits, to avoid fetching all history fetch-depth: 2 # Only get the last 2 commits, to avoid fetching all history
build: build:
runs-on: [self-hosted, vanity] runs-on: [self-hosted, xahaud-build]
needs: [checkout] needs: [checkout]
defaults: defaults:
run: run:
@@ -74,7 +74,7 @@ jobs:
fi fi
tests: tests:
runs-on: [self-hosted, vanity] runs-on: [self-hosted, xahaud-build]
needs: [build, checkout] needs: [build, checkout]
defaults: defaults:
run: run:
@@ -84,7 +84,7 @@ jobs:
run: /bin/bash docker-unit-tests.sh run: /bin/bash docker-unit-tests.sh
cleanup: cleanup:
runs-on: [self-hosted, vanity] runs-on: [self-hosted, xahaud-build]
needs: [tests, checkout] needs: [tests, checkout]
if: always() if: always()
steps: steps:

View File

@@ -4,7 +4,7 @@ on: [push, pull_request]
jobs: jobs:
check: check:
runs-on: [self-hosted, generic] runs-on: ubuntu-22.04
env: env:
CLANG_VERSION: 10 CLANG_VERSION: 10
steps: steps:

View File

@@ -18,7 +18,7 @@ jobs:
generator: bash ./hook/generate_sfcodes.sh generator: bash ./hook/generate_sfcodes.sh
- target: hook/tts.h - target: hook/tts.h
generator: ./hook/generate_tts.sh generator: ./hook/generate_tts.sh
runs-on: [self-hosted, generic] runs-on: ubuntu-22.04
name: ${{ matrix.target }} name: ${{ matrix.target }}
steps: steps:
- name: Checkout repository - name: Checkout repository

View File

@@ -20,7 +20,7 @@ jobs:
- Ninja - Ninja
configuration: configuration:
- Debug - Debug
runs-on: macos-15-xlarge runs-on: macos-15
env: env:
build_dir: .build build_dir: .build
# Bump this number to invalidate all caches globally. # Bump this number to invalidate all caches globally.

View File

@@ -168,7 +168,7 @@ jobs:
build: build:
needs: matrix-setup needs: matrix-setup
runs-on: ubuntu-latest runs-on: [self-hosted, generic]
outputs: outputs:
artifact_name: ${{ steps.set-artifact-name.outputs.artifact_name }} artifact_name: ${{ steps.set-artifact-name.outputs.artifact_name }}
strategy: strategy:
@@ -182,6 +182,16 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install python if not installed
run: |
if ! which python3 > /dev/null 2>&1; then
sudo apt-get update
sudo apt-get install -y python3 python-is-python3
fi
if ! which pip3 > /dev/null 2>&1; then
sudo apt-get install -y python3-pip
fi
- name: Get commit message - name: Get commit message
id: get-commit-message id: get-commit-message
@@ -194,7 +204,10 @@ jobs:
- name: Install build dependencies - name: Install build dependencies
run: | run: |
sudo apt-get update sudo apt-get update
sudo apt-get install -y ninja-build ${{ matrix.cc }} ${{ matrix.cxx }} ccache sudo apt install software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt update
sudo apt-get install -y cmake ninja-build ${{ matrix.cc }} ${{ matrix.cxx }} ccache
# Install the specific GCC version needed for Clang # Install the specific GCC version needed for Clang
if [ -n "${{ matrix.clang_gcc_toolchain }}" ]; then if [ -n "${{ matrix.clang_gcc_toolchain }}" ]; then
@@ -258,7 +271,7 @@ jobs:
fi fi
# Install Conan 2 # Install Conan 2
pip install --upgrade "conan>=2.0,<3" pip3 install --upgrade "conan>=2.0,<3"
- name: Check environment - name: Check environment
run: | run: |