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: pull_request:
branches: branches:
- master - master
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup dotnet
- name: Setup .NET
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v3
with: with:
dotnet-version: 8.0.x dotnet-version: 8.0.x
- name: Build - name: Build
run: dotnet build --configuration Release run: dotnet build --configuration Release
- name: Test - name: Test
run: dotnet test --configuration Release --no-build 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 uses: actions/upload-artifact@v3
with: with:
name: Build name: cssudii-sodium-build-${{ env.datetime }}
path: ${{ github.workspace }} path: ${{ github.workspace }}

View File

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

View File

@@ -1,5 +1,7 @@
# CSSUDII.Sodium # 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 --file-directory
E:/Downloads/libsodium/include /tmp/sodium/include
--config --config
generate-helper-types generate-helper-types