mirror of
https://github.com/Xahau/xahaud.git
synced 2026-01-21 15:15:15 +00:00
Compare commits
3 Commits
self-hoste
...
self-hoste
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
063ce3eaef | ||
|
|
2000c514a4 | ||
|
|
d4f4c2bc6c |
29
.github/workflows/xahau-ga-nix.yml
vendored
29
.github/workflows/xahau-ga-nix.yml
vendored
@@ -174,8 +174,23 @@ jobs:
|
||||
with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
|
||||
f.write(f"matrix={output}\n")
|
||||
|
||||
apt-cache:
|
||||
runs-on: [self-hosted, generic, 20.04]
|
||||
container:
|
||||
image: ubuntu:24.04
|
||||
volumes:
|
||||
- /home/runner/.apt-cache:/var/cache/apt
|
||||
steps:
|
||||
- name: Install build dependencies to save apt cache
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y software-properties-common
|
||||
add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||
apt-get update
|
||||
apt-get install -y python3 python-is-python3 pipx cmake ninja-build ccache perl libsqlite3-dev
|
||||
|
||||
build:
|
||||
needs: matrix-setup
|
||||
needs: [matrix-setup, apt-cache]
|
||||
runs-on: [self-hosted, generic, 20.04]
|
||||
container:
|
||||
image: ubuntu:24.04
|
||||
@@ -183,6 +198,8 @@ jobs:
|
||||
- /home/runner/.conan-cache:/.conan-cache
|
||||
- /home/runner/.ccache-main:/github/home/.ccache-main
|
||||
- /home/runner/.ccache-current:/github/home/.ccache-current
|
||||
# apt cache as readonly
|
||||
- /home/runner/.apt-cache:/apt-cache-ro:ro
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
@@ -200,8 +217,18 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Seed apt cache
|
||||
run: |
|
||||
# prepare apt cache directory
|
||||
mkdir -p /var/cache/apt/archives
|
||||
|
||||
# copy existing .deb files from apt cache
|
||||
mkdir -p /var/cache/apt/archives
|
||||
cp -a /apt-cache-ro/archives/. /var/cache/apt/archives/
|
||||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
# install dependencies from apt cache
|
||||
apt-get update
|
||||
apt-get install -y software-properties-common
|
||||
add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
||||
|
||||
Reference in New Issue
Block a user