File tree Expand file tree Collapse file tree 11 files changed +104
-14
lines changed
Expand file tree Collapse file tree 11 files changed +104
-14
lines changed Original file line number Diff line number Diff line change 1+ * text =auto eol =lf
Original file line number Diff line number Diff line change 66 pull_request :
77
88jobs :
9-
109 build :
1110 runs-on : ubuntu-latest
1211 container :
1817 - name : Set up Go
1918 uses : actions/setup-go@v5
2019 with :
21- go-version : 1.21
20+ go-version : 1.22
2221
2322 - name : Install build dependencies
2423 run : |
@@ -29,16 +28,27 @@ jobs:
2928 run : go build -o vanilla-tools/ ./...
3029
3130 - name : Compress
32- if : github.repository == 'Vanilla-OS/vanilla-tools' && github.ref == 'refs/heads/main'
3331 run : tar -czvf vanilla-tools.tar.gz vanilla-tools/*
32+
33+ - name : Calculate and Save Checksums
34+ run : |
35+ sha256sum vanilla-tools.tar.gz >> checksums.txt
36+
37+ - uses : actions/upload-artifact@v4
38+ with :
39+ name : vanilla-tools
40+ path : |
41+ checksums.txt
42+ vanilla-tools.tar.gz
3443
3544 - name : Release
36- if : github.repository == 'Vanilla-OS/vanilla-tools' && github. ref == 'refs/heads/main'
45+ if : github.ref == 'refs/heads/main'
3746 uses : softprops/action-gh-release@v1
3847 with :
3948 token : " ${{ secrets.GITHUB_TOKEN }}"
4049 tag_name : " continuous"
4150 prerelease : true
4251 name : " Continuous Build"
4352 files : |
53+ checksums.txt
4454 vanilla-tools.tar.gz
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+
8+ jobs :
9+ build-artifacts :
10+ runs-on : ubuntu-latest
11+ container :
12+ image : ghcr.io/vanilla-os/pico:main
13+
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+
18+ - name : Set up Go
19+ uses : actions/setup-go@v5
20+ with :
21+ go-version : 1.22
22+
23+ - name : Install build dependencies
24+ run : |
25+ apt-get update
26+ apt-get install -y pkg-config build-essential xorg-dev
27+
28+ - name : Build
29+ run : go build -o vanilla-tools/ ./...
30+
31+ - name : Compress
32+ run : tar -czvf vanilla-tools.tar.gz vanilla-tools/*
33+
34+ - name : Calculate and Save Checksums
35+ run : |
36+ sha256sum vanilla-tools.tar.gz >> checksums.txt
37+
38+ - uses : actions/upload-artifact@v4
39+ with :
40+ name : vanilla-tools
41+ path : |
42+ checksums.txt
43+ vanilla-tools.tar.gz
44+
45+ release :
46+ runs-on : ubuntu-latest
47+ needs : build-artifacts
48+ permissions :
49+ contents : write # to create and upload assets to releases
50+ attestations : write # to upload assets attestation for build provenance
51+ id-token : write # grant additional permission to attestation action to mint the OIDC token permission
52+
53+ steps :
54+ - name : Checkout
55+ uses : actions/checkout@v4
56+ with :
57+ fetch-depth : 0
58+
59+ - name : Download Artifact
60+ uses : actions/download-artifact@v4
61+ with :
62+ name : vanilla-tools
63+
64+ - name : Create Release
65+ env :
66+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
67+ run : gh release create "${{ github.ref_name }}" --generate-notes *.tar.gz checksums.txt
68+
69+ - name : Attest Release Files
70+ id : attest
71+ uses : actions/attest-build-provenance@v1
72+ with :
73+ subject-path : ' *.tar.gz, checksums.txt'
File renamed without changes.
Original file line number Diff line number Diff line change 11# Vanilla Tools
22
3- This is a collection of useful tools for Vanilla OS.
3+ This repository is a collection of useful tools for Vanilla OS.
44
55## Tools
66
7+ - ` cur-gpu ` - A minimal glxinfo re-implementation to get the current GPU/Driver and optionally the GL extensions.
78- ` lpkg ` - A package manager locker/unlocker for Vanilla OS.
8- - ` cur-gpu ` - A minimal glxinfo re-implementation to get the current GPU/Driver and optionally the GL extensions.
9+ - ` nrun ` - A simple utility to add the environment variables needed to run a program with a NVIDIA GPU.
10+ - ` prime-switch ` - Utility to switch PRIME profiles on a Debian + ABRoot based system.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ package main
44 Authors:
5566 Vanilla OS Contributors <https://github.com/vanilla-os/>
7- Copyright: 2023
7+ Copyright: 2024
88 Description:
99 This program is a simple OpenGL program that prints the GPU name and vendor.
1010*/
Original file line number Diff line number Diff line change 11module github.com/vanilla-os/vanilla-tools
22
3- go 1.21
3+ go 1.22
44
55require (
6- github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6
7- github.com/go-gl/glfw v0.0.0-20221017161538-93cebf72946b
6+ github.com/go-gl/gl v0.0.0-20231021071112-07e5d0ea2e71
7+ github.com/go-gl/glfw v0.0.0-20240506104042-037f3cc74f2a
88)
Original file line number Diff line number Diff line change 11github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 h1:zDw5v7qm4yH7N8C8uWd+8Ii9rROdgWxQuGoJ9WDXxfk =
22github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 /go.mod h1:9YTyiznxEY1fVinfM7RvRcjRHbw2xLBJ3AAGIT0I4Nw =
3+ github.com/go-gl/gl v0.0.0-20231021071112-07e5d0ea2e71 h1:5BVwOaUSBTlVZowGO6VZGw2H/zl9nrd3eCZfYV+NfQA =
4+ github.com/go-gl/gl v0.0.0-20231021071112-07e5d0ea2e71 /go.mod h1:9YTyiznxEY1fVinfM7RvRcjRHbw2xLBJ3AAGIT0I4Nw =
35github.com/go-gl/glfw v0.0.0-20221017161538-93cebf72946b h1:2hdUMUOJuLQkhaPAwoyOeSzoaBydYEkXkBEuqDuDBfg =
46github.com/go-gl/glfw v0.0.0-20221017161538-93cebf72946b /go.mod h1:wyvWpaEu9B/VQiV1jsPs7Mha9I7yto/HqIBw197ZAzk =
7+ github.com/go-gl/glfw v0.0.0-20240506104042-037f3cc74f2a h1:FAC6eA052T8d4Lp5GR38Sxta8fnq//jjBGDtsT0TVAU =
8+ github.com/go-gl/glfw v0.0.0-20240506104042-037f3cc74f2a /go.mod h1:wyvWpaEu9B/VQiV1jsPs7Mha9I7yto/HqIBw197ZAzk =
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ package main
44 Authors:
5566 Vanilla OS Contributors <https://github.com/vanilla-os/>
7- Copyright: 2023
7+ Copyright: 2024
88 Description:
99 This tool is used to lock apt and dpkg binaries to prevent
1010 usage of the package manager in an immutable system.
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ package main
44 Authors:
5566 Vanilla OS Contributors <https://github.com/vanilla-os/>
7- Copyright: 2023
7+ Copyright: 2024
88 Description:
99 This program simply adds the environment variables needed to run a program with the NVIDIA GPU.
10- NOTE: I am using Go for such a simple program because all the other vanilla tools are written in Go.
10+ NOTE: We are using Go for such a simple program because all the other vanilla tools are written in Go.
1111*/
1212
1313import (
You can’t perform that action at this time.
0 commit comments