mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-30 17:41:41 +01:00
b6d95a0ce5
Jobs without a permissions block get the repository's default token scope, and reusable workflow calls pass the caller's grants straight through. Scopes are now derived from what each workflow actually does with the token: - every build workflow declares contents: read; none of them writes through the GITHUB_TOKEN. - build-linux-hosts.yml keeps security-events: write for the CodeQL upload; the other callers had that grant too but never upload scanning results, so they drop it. - build-windows-hosts.yml gets actions: read, which the SignPath action documents needing to read job details and download the unsigned artifact. - build-release.yml declares contents: write, matching the grant its caller already makes for creating the release. Runs that execute pull request code now hold a token that can do nothing but read the repository.
66 lines
1.8 KiB
YAML
66 lines
1.8 KiB
YAML
name: Reusable OpenBSD amd64
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
shell: cpa.sh {0}
|
|
|
|
steps:
|
|
- name: checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Start VM
|
|
uses: cross-platform-actions/action@5ea7e8e4677bd726033a10b094ba1c5762b15dee # v1.3.0
|
|
with:
|
|
operating_system: openbsd
|
|
version: '7.9'
|
|
shell: bash
|
|
cpu_count: 4
|
|
|
|
- name: Show system info
|
|
run: |
|
|
uname -a
|
|
|
|
- name: Update and install dependencies
|
|
run: |
|
|
sudo pkg_add -u
|
|
sudo pkg_add -r llvm-21.1.8p4 cmake git wayland vulkan-headers vulkan-loader glib2 dconf dbus sqlite3 imagemagick chafa lua-5.4.8p0 # pkg-config is preinstalled
|
|
|
|
- name: CMake configuration
|
|
run: CC=clang-21 cmake -DSET_TWEAK=Off -DBUILD_TESTS=On -DENABLE_EMBEDDED_PCIIDS=On -DENABLE_EMBEDDED_AMDGPUIDS=On -DCMAKE_BUILD_TYPE=${{ vars.CMAKE_BUILD_TYPE || 'RelWithDebInfo' }} .
|
|
|
|
- name: CMake build
|
|
run: cmake --build . --target package --verbose -j4
|
|
|
|
- name: List features
|
|
run: ./fastfetch --list-features
|
|
|
|
- name: Run normal
|
|
run: time ./fastfetch -c presets/ci.jsonc --stat false
|
|
|
|
- name: Run json
|
|
run: time ./fastfetch -c presets/ci.jsonc --format json
|
|
|
|
- name: Run flashfetch
|
|
run: time ./flashfetch
|
|
|
|
- name: Run ldd
|
|
run: ldd fastfetch
|
|
|
|
- name: Run tests
|
|
run: ctest --output-on-failure
|
|
|
|
- name: upload artifacts
|
|
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
|
|
with:
|
|
name: fastfetch-openbsd-amd64
|
|
path: ./fastfetch-*.*
|