generated from Vanilla-OS/vib-plugin
-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bump Go to 1.22, add release CI
Signed-off-by: K.B.Dharun Krishna <[email protected]>
- Loading branch information
Showing
7 changed files
with
52 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # to upload assets to releases | ||
attestations: write # to upload assets attestation for build provenance | ||
id-token: write # grant additional permission to attestation action to mint the OIDC token permission | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.22 | ||
|
||
- name: Build | ||
run: | | ||
go get ./... | ||
go build -buildmode=c-shared -o fsguard.so -v ./... | ||
- name: Upload Release Asset | ||
if: github.repository == 'Vanilla-OS/vib-fsguard' | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
fsguard.so | ||
- name: Attest Generated Files | ||
if: github.repository == 'Vanilla-OS/vib-fsguard' | ||
id: attest | ||
uses: actions/attest-build-provenance@v1 | ||
with: | ||
subject-path: 'fsguard.so' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
filelist | ||
log.txt | ||
*.h | ||
*.so | ||
*.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
module github.com/vanilla-os/vib-fsguard | ||
|
||
go 1.21 | ||
go 1.22 | ||
|
||
require ( | ||
github.com/mitchellh/mapstructure v1.5.0 | ||
github.com/vanilla-os/vib/api v0.0.0-20240331150207-852011e4d96f | ||
) | ||
require github.com/vanilla-os/vib/api v0.0.0-20240618173922-1485e58729d9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= | ||
github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= | ||
github.com/vanilla-os/vib/api v0.0.0-20231203164136-c843eaca2af6 h1:J9h3w+pi9ZhhXDS+d/9IxWNbJ4hSMlUU8HFrF5RTtWE= | ||
github.com/vanilla-os/vib/api v0.0.0-20231203164136-c843eaca2af6/go.mod h1:vjJzDfFxfFHN5O2hcMwGM9De3+H9gGa00Pr3Um6EmCA= | ||
github.com/vanilla-os/vib/api v0.0.0-20240323151200-ee1fb88cbbfa h1:j1itnO1xevZdHFS9cXJ7aSiG0OoHnSRVgBKaEMevFO4= | ||
github.com/vanilla-os/vib/api v0.0.0-20240323151200-ee1fb88cbbfa/go.mod h1:vjJzDfFxfFHN5O2hcMwGM9De3+H9gGa00Pr3Um6EmCA= | ||
github.com/vanilla-os/vib/api v0.0.0-20240331150207-852011e4d96f h1:sRPpotRlyj3Qx4ftt5oYf7JQuIYTQwwPq93xomWaIKQ= | ||
github.com/vanilla-os/vib/api v0.0.0-20240331150207-852011e4d96f/go.mod h1:vjJzDfFxfFHN5O2hcMwGM9De3+H9gGa00Pr3Um6EmCA= | ||
github.com/vanilla-os/vib/api v0.0.0-20240618173922-1485e58729d9 h1:NA3V/7s4eofD/VSzxlRUQjIW3wStvqtch2Lsi/2blFU= | ||
github.com/vanilla-os/vib/api v0.0.0-20240618173922-1485e58729d9/go.mod h1:vjJzDfFxfFHN5O2hcMwGM9De3+H9gGa00Pr3Um6EmCA= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// Copyright 2024, axtlos <[email protected]> | ||
// SPDX-License-Identifier: GPL-3.0-ONLY | ||
|
||
package main | ||
|
||
import ( | ||
|