mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-26 05:25:49 +00:00
Compare commits
6 Commits
revert-sel
...
self-hoste
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e4e5eaff1 | ||
|
|
2e96ae905d | ||
|
|
d02af3c891 | ||
|
|
6f559a6032 | ||
|
|
9980e8f9be | ||
|
|
fe17dde005 |
@@ -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
|
||||||
|
|||||||
8
.github/workflows/build-in-docker.yml
vendored
8
.github/workflows/build-in-docker.yml
vendored
@@ -15,7 +15,7 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
checkout:
|
checkout:
|
||||||
runs-on: [self-hosted, vanity]
|
runs-on: [self-hosted, xahaud-build]
|
||||||
outputs:
|
outputs:
|
||||||
checkout_path: ${{ steps.vars.outputs.checkout_path }}
|
checkout_path: ${{ steps.vars.outputs.checkout_path }}
|
||||||
steps:
|
steps:
|
||||||
@@ -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:
|
||||||
|
|||||||
2
.github/workflows/levelization.yml
vendored
2
.github/workflows/levelization.yml
vendored
@@ -4,7 +4,7 @@ on: [push, pull_request]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
env:
|
env:
|
||||||
CLANG_VERSION: 10
|
CLANG_VERSION: 10
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -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: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
name: ${{ matrix.target }}
|
name: ${{ matrix.target }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|||||||
2
.github/workflows/xahau-ga-macos.yml
vendored
2
.github/workflows/xahau-ga-macos.yml
vendored
@@ -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.
|
||||||
|
|||||||
21
.github/workflows/xahau-ga-nix.yml
vendored
21
.github/workflows/xahau-ga-nix.yml
vendored
@@ -14,7 +14,7 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
matrix-setup:
|
matrix-setup:
|
||||||
runs-on: ubuntu-latest
|
runs-on: [self-hosted, generic]
|
||||||
container: python:3-slim
|
container: python:3-slim
|
||||||
outputs:
|
outputs:
|
||||||
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
||||||
@@ -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:
|
||||||
@@ -183,6 +183,16 @@ jobs:
|
|||||||
- 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
|
||||||
uses: ./.github/actions/xahau-ga-get-commit-message
|
uses: ./.github/actions/xahau-ga-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: |
|
||||||
|
|||||||
Reference in New Issue
Block a user