mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 17:42:49 +02:00
Compare commits
3 commits
af53ea5599
...
fbeb8b1f9e
Author | SHA1 | Date | |
---|---|---|---|
|
fbeb8b1f9e | ||
|
1a3107c20a | ||
|
969d7cbb66 |
5 changed files with 14 additions and 51 deletions
|
@ -2,18 +2,12 @@ name: sccache
|
||||||
description: |
|
description: |
|
||||||
Install sccache for caching builds in GitHub Actions.
|
Install sccache for caching builds in GitHub Actions.
|
||||||
|
|
||||||
inputs:
|
|
||||||
token:
|
|
||||||
description: 'A Github PAT'
|
|
||||||
required: false
|
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Install sccache
|
- name: Install sccache
|
||||||
uses: https://github.com/mozilla-actions/sccache-action@v0.0.9
|
uses: https://git.tomfos.tr/tom/sccache-action@v1
|
||||||
with:
|
|
||||||
token: ${{ inputs.token }}
|
|
||||||
- name: Configure sccache
|
- name: Configure sccache
|
||||||
uses: https://github.com/actions/github-script@v7
|
uses: https://github.com/actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -88,19 +88,9 @@ runs:
|
||||||
# Shared toolchain cache across all Rust versions
|
# Shared toolchain cache across all Rust versions
|
||||||
key: toolchain-${{ steps.runner-os.outputs.slug }}
|
key: toolchain-${{ steps.runner-os.outputs.slug }}
|
||||||
|
|
||||||
- name: Debug GitHub token availability
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
if [ -z "${{ inputs.github-token }}" ]; then
|
|
||||||
echo "⚠️ No GitHub token provided - sccache will use fallback download method"
|
|
||||||
else
|
|
||||||
echo "✅ GitHub token provided for sccache"
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Setup sccache
|
- name: Setup sccache
|
||||||
uses: https://github.com/mozilla-actions/sccache-action@v0.0.9
|
uses: https://git.tomfos.tr/tom/sccache-action@v1
|
||||||
with:
|
|
||||||
token: ${{ inputs.github-token }}
|
|
||||||
|
|
||||||
- name: Cache build artifacts
|
- name: Cache build artifacts
|
||||||
id: build-cache
|
id: build-cache
|
||||||
|
|
|
@ -68,9 +68,7 @@ jobs:
|
||||||
rust-deps-fedora${{ steps.fedora.outputs.version }}-
|
rust-deps-fedora${{ steps.fedora.outputs.version }}-
|
||||||
|
|
||||||
- name: Setup sccache
|
- name: Setup sccache
|
||||||
uses: https://github.com/mozilla-actions/sccache-action@v0.0.9
|
uses: https://git.tomfos.tr/tom/sccache-action@v1
|
||||||
with:
|
|
||||||
token: ${{ secrets.GH_PUBLIC_RO }}
|
|
||||||
|
|
||||||
- name: Configure sccache environment
|
- name: Configure sccache environment
|
||||||
run: |
|
run: |
|
||||||
|
@ -84,14 +82,11 @@ jobs:
|
||||||
- name: Install base RPM tools
|
- name: Install base RPM tools
|
||||||
run: |
|
run: |
|
||||||
dnf install -y --setopt=keepcache=1 \
|
dnf install -y --setopt=keepcache=1 \
|
||||||
wget \
|
fedora-packager \
|
||||||
rpm-build \
|
python3-pip \
|
||||||
rpm-sign \
|
rpm-sign \
|
||||||
rpmdevtools \
|
|
||||||
rpkg \
|
rpkg \
|
||||||
cargo-rpm-macros \
|
wget
|
||||||
systemd-rpm-macros \
|
|
||||||
python3-pip
|
|
||||||
|
|
||||||
- name: Setup build environment and build SRPM
|
- name: Setup build environment and build SRPM
|
||||||
run: |
|
run: |
|
||||||
|
|
20
flake.lock
generated
20
flake.lock
generated
|
@ -513,23 +513,6 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rocksdb": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1753385396,
|
|
||||||
"narHash": "sha256-/Hvy1yTH/0D5aa7bc+/uqFugCQq4InTdwlRw88vA5IY=",
|
|
||||||
"ref": "10.4.fb",
|
|
||||||
"rev": "28d4b7276c16ed3e28af1bd96162d6442ce25923",
|
|
||||||
"revCount": 13318,
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://forgejo.ellis.link/continuwuation/rocksdb"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"ref": "10.4.fb",
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://forgejo.ellis.link/continuwuation/rocksdb"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
"root": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"attic": "attic",
|
"attic": "attic",
|
||||||
|
@ -539,8 +522,7 @@
|
||||||
"flake-compat": "flake-compat_3",
|
"flake-compat": "flake-compat_3",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nix-filter": "nix-filter",
|
"nix-filter": "nix-filter",
|
||||||
"nixpkgs": "nixpkgs_5",
|
"nixpkgs": "nixpkgs_5"
|
||||||
"rocksdb": "rocksdb"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
|
|
12
flake.nix
12
flake.nix
|
@ -16,10 +16,6 @@
|
||||||
flake-utils.url = "github:numtide/flake-utils?ref=main";
|
flake-utils.url = "github:numtide/flake-utils?ref=main";
|
||||||
nix-filter.url = "github:numtide/nix-filter?ref=main";
|
nix-filter.url = "github:numtide/nix-filter?ref=main";
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixpkgs-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixpkgs-unstable";
|
||||||
rocksdb = {
|
|
||||||
url = "git+https://forgejo.ellis.link/continuwuation/rocksdb?ref=10.4.fb";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs =
|
outputs =
|
||||||
|
@ -65,7 +61,13 @@
|
||||||
inherit (self) liburing;
|
inherit (self) liburing;
|
||||||
}).overrideAttrs
|
}).overrideAttrs
|
||||||
(old: {
|
(old: {
|
||||||
src = inputs.rocksdb;
|
src = pkgsHost.fetchFromGitea {
|
||||||
|
domain = "forgejo.ellis.link";
|
||||||
|
owner = "continuwuation";
|
||||||
|
repo = "rocksdb";
|
||||||
|
rev = "10.4.fb";
|
||||||
|
sha256 = "sha256-/Hvy1yTH/0D5aa7bc+/uqFugCQq4InTdwlRw88vA5IY=";
|
||||||
|
};
|
||||||
version = "v10.4.fb";
|
version = "v10.4.fb";
|
||||||
cmakeFlags =
|
cmakeFlags =
|
||||||
pkgs.lib.subtractLists [
|
pkgs.lib.subtractLists [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue