Update README
All checks were successful
/ build (push) Successful in 2m28s

This commit is contained in:
2025-04-09 17:50:45 +12:00
parent a3aa9e0061
commit ee886622ae
4 changed files with 32 additions and 20 deletions

View File

@@ -5,22 +5,31 @@ on:
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build
run: dotnet build --configuration Release
- name: Test
run: dotnet test --configuration Release --no-build
- name: Upload artifacts
- name: Get current timestamp
id: timestamp
run: echo "datetime=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: Build
name: cssudii-sodium-build-${{ env.datetime }}
path: ${{ github.workspace }}

View File

@@ -2,34 +2,35 @@ on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Verify commit exists in origin/master
run: >
git fetch --no-tags --prune --depth=1 origin
+refs/heads/*:refs/remotes/origin/*
git branch --remote --contains | grep origin/master
- name: Set VERSION variable from tag
- name: Extract version from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
- name: Build
run: dotnet build --configuration Release /p:Version=${VERSION}
- name: Test
run: dotnet test --configuration Release /p:Version=${VERSION} --no-build
- name: Pack
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build
--output .
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
- name: Push
run: dotnet nuget push CSSUDII.Sodium.Interop.${VERSION}.nupkg --source
https://git.119.224.65.18.sslip.io/api/packages/CSSUDII/nuget/index.json
run: |
dotnet nuget push CSSUDII.Sodium.Interop.${VERSION}.nupkg \
--source https://git.119.224.65.18.sslip.io/api/packages/CSSUDII/nuget/index.json \
--api-key ${NUGET_TOKEN}
env:
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}

View File

@@ -1,5 +1,7 @@
# CSSUDII.Sodium
> This is a fork of https://github.com/space-wizards/SpaceWizards.Sodium
Fork of https://github.com/space-wizards/SpaceWizards.Sodium
.NET 8 [libsodium](https://libsodium.gitbook.io/doc/) bindings.
## Changes
- Updated to libsodium v1.0.20

View File

@@ -1,5 +1,5 @@
--file-directory
E:/Downloads/libsodium/include
/tmp/sodium/include
--config
generate-helper-types