Skip to content

Commit

Permalink
Initial Commit for Nvidia Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwelldoug committed Jul 16, 2024
0 parents commit 834c4fe
Show file tree
Hide file tree
Showing 15 changed files with 1,067 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ref: https://git-scm.com/docs/gitattributes
* text=auto eol=lf
4 changes: 4 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These are supported funding model platforms

github: vanilla-os
liberapay: fabricators
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG-REPORT.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: "🐝 Bug Report"
description: "In case something is broken or doesn't work as expected."
labels: ["bug", "triage"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to help us
--------
Don't worry, we eat bugs for breakfast.
- type: textarea
id: description
attributes:
label: Issue Description
description: |
Tell us, what's the problem? But please keep it brief and on point.
Feel free to add screenshots or other necessary attachments.
placeholder: |
Sometimes I get booted into the C partition I never knew existed.
validations:
required: true
- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to Reproduce
description: |
What steps would we have to take to reproduce the issue?
placeholder: |
- Verify that the present partition is A (or B)
- Make sure that the future partition is the other one
- Reboot
- Check the present partition. Sometimes it's C.
validations:
required: true
- type: dropdown
id: os-version
attributes:
label: On what version of Vanilla OS this happens?
description: |
You can look it up in the Settings app, at the bottom of the About page.
options:
- "22.10"
- "Unreleased"
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional Information
description: |
If you feel like it, share some thoughts or additional context.
placeholder: |
Maybe this is a leftover from my previous OS? IIRC, it used to be installed in the C partition.
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE-REQUEST.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "🌼 Feature Request"
description: "In case you're missing some feature or have a cool idea."
labels: ["feature request", "triage"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to help us
--------
Don't worry, we love both revolution and evolution.
- type: textarea
id: description
attributes:
label: Feature Description
description: |
Explain what feature you have in mind. But please keep the pitch brief and on point.
Feel free to add screenshots or other necessary attachments.
placeholder: |
A system configuration option to always keep it mutable.
validations:
required: true
- type: textarea
id: rationale
attributes:
label: Rationale
description: |
Why is this feature needed? What problem does it solve?
placeholder: >
I love messing with my root partition so much, that I'm getting
tired of turning off immutability.
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional Information
description: |
If you feel like it, share some thoughts or additional context.
placeholder: |
Maybe it would be better not to have immutability at all? Why do you need it?
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: true
contact_links:
- name: "Discord Server"
url: https://vanillaos.org/community
about: "Consider joining the Discord Server to discuss your issue, question or suggestion with the community before opening an issue."
- name: "r/vanillaos Subreddit"
url: https://www.reddit.com/r/vanillaos
about: "Consider joining the r/vanillaos subreddit to discuss your issue, question or suggestion with the community before opening an issue."
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
18 changes: 18 additions & 0 deletions .github/gen_package_list.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/sh

packages=""
IFS='
'
for line in $(dpkg -l --no-pager); do
case "$line" in
"ii"*)
items=$(echo "$line" | sed -E "s/\\s+/ /g")
name=$(echo "$items" | cut -d ' ' -f2 | cut -d ':' -f1)
version=$(echo "$items" | cut -d ' ' -f3)
packages="$packages{\"name\":\"$name\",\"version\":\"$version\"},"
;;
esac
done

packages="[${packages%,}]"
printf "\"packages\":%s\n" "$packages"
98 changes: 98 additions & 0 deletions .github/workflows/vib-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: Vib Build

on:
push:
branches:
- "main"
tags:
- "*"
workflow_dispatch:
pull_request:

env:
BUILDX_NO_DEFAULT_ATTESTATIONS: 1

jobs:
verify-image:
runs-on: ubuntu-latest

steps:
- name: Verify Base Image Integrity
run: gh attestation verify oci://ghcr.io/kanola-images/plasma:main --owner Kanola-Images
env:
GH_TOKEN: ${{ github.token }}

build:
runs-on: ubuntu-latest
needs: verify-image
permissions:
contents: write # Allow actions to create release
packages: write # Allow pushing images to GHCR
attestations: write # To create and write attestations
id-token: write # Additional permissions for the persistence of the attestations

steps:
- uses: actions/checkout@v4

- uses: vanilla-os/[email protected]
with:
recipe: "recipe.yml"
plugins: "Vanilla-OS/vib-fsguard:v1.5.3"

- uses: actions/upload-artifact@v4
with:
name: Containerfile
path: Containerfile

- name: Generate image name
run: |
REPO_OWNER_LOWERCASE="$(echo ${{ github.repository_owner }} | tr '[:upper:]' '[:lower:]')"
echo "REPO_OWNER_LOWERCASE=$REPO_OWNER_LOWERCASE" >> "$GITHUB_ENV"
echo "IMAGE_URL=ghcr.io/$REPO_OWNER_LOWERCASE/nplasma" >> "$GITHUB_ENV"
- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v5
with:
images: |
${{ env. IMAGE_URL }}
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{raw}}
type=semver,pattern=v{{major}}
type=ref,event=branch
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Package Registry
uses: docker/login-action@v3
if: ${{ github.event_name != 'pull_request' }}
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push the Docker image
id: push
uses: docker/build-push-action@v6
with:
context: .
file: Containerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64
provenance: false

- name: Attest pushed image
uses: actions/attest-build-provenance@v1
id: attest
if: ${{ github.event_name != 'pull_request' }}
with:
subject-name: ${{ env.IMAGE_URL }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Containerfile
sources/
downloads/
Loading

0 comments on commit 834c4fe

Please sign in to comment.