This commit is contained in:
17
.github/workflows/build.yml
vendored
17
.github/workflows/build.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user