mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-30 15:35:49 +00:00
some changes
This commit is contained in:
@@ -18,11 +18,10 @@ runs:
|
|||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
- name: Get commit message and set environment variable
|
- name: Get commit message and set environment variable
|
||||||
shell: bash
|
shell: python
|
||||||
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
|
||||||
@@ -73,4 +72,3 @@ 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
|
|
||||||
|
|||||||
32
.github/workflows/xahau-ga-nix.yml
vendored
32
.github/workflows/xahau-ga-nix.yml
vendored
@@ -185,7 +185,6 @@ jobs:
|
|||||||
- /home/runner/.ccache-current:/github/home/.ccache-current
|
- /home/runner/.ccache-current:/github/home/.ccache-current
|
||||||
options: >-
|
options: >-
|
||||||
--privileged
|
--privileged
|
||||||
--name xahaud-ci-${{ matrix.compiler_id }}
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -202,32 +201,15 @@ 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
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y python3 python-is-python3
|
|
||||||
fi
|
|
||||||
if ! which pipx > /dev/null 2>&1; then
|
|
||||||
apt-get install -y pipx
|
|
||||||
pipx ensurepath
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Get commit message
|
|
||||||
id: get-commit-message
|
|
||||||
uses: ./.github/actions/xahau-ga-get-commit-message
|
|
||||||
with:
|
|
||||||
event-name: ${{ github.event_name }}
|
|
||||||
head-commit-message: ${{ github.event.head_commit.message }}
|
|
||||||
pr-head-sha: ${{ github.event.pull_request.head.sha }}
|
|
||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y software-properties-common
|
apt-get install -y software-properties-common
|
||||||
add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||||
apt update
|
apt-get update
|
||||||
|
apt-get install -y python3 python-is-python3 pipx
|
||||||
|
pipx ensurepath
|
||||||
apt-get install -y cmake ninja-build ${{ matrix.cc }} ${{ matrix.cxx }} ccache
|
apt-get install -y cmake ninja-build ${{ matrix.cc }} ${{ matrix.cxx }} ccache
|
||||||
apt-get install -y perl # for openssl build
|
apt-get install -y perl # for openssl build
|
||||||
apt-get install -y libsqlite3-dev # for xahaud build
|
apt-get install -y libsqlite3-dev # for xahaud build
|
||||||
@@ -309,6 +291,14 @@ jobs:
|
|||||||
echo "---- Full Environment ----"
|
echo "---- Full Environment ----"
|
||||||
env
|
env
|
||||||
|
|
||||||
|
- name: Get commit message
|
||||||
|
id: get-commit-message
|
||||||
|
uses: ./.github/actions/xahau-ga-get-commit-message
|
||||||
|
with:
|
||||||
|
event-name: ${{ github.event_name }}
|
||||||
|
head-commit-message: ${{ github.event.head_commit.message }}
|
||||||
|
pr-head-sha: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
uses: ./.github/actions/xahau-ga-dependencies
|
uses: ./.github/actions/xahau-ga-dependencies
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user