Port CI from GitLab CI to Forgejo Actions
All checks were successful
CI / build (push) Successful in 1m43s
All checks were successful
CI / build (push) Successful in 1m43s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
0baa730027
commit
cfec9a85fd
3 changed files with 32 additions and 13 deletions
31
.forgejo/workflows/ci.yml
Normal file
31
.forgejo/workflows/ci.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["**"]
|
||||
tags: ["**"]
|
||||
workflow_dispatch:
|
||||
|
||||
# GitLab built this in a Windows Server container on a runner tagged "windows". No Windows runner exists
|
||||
# here, so it builds on Linux: the project targets net6.0-windows (WinForms), which the .NET SDK can
|
||||
# cross-build with EnableWindowsTargeting.
|
||||
jobs:
|
||||
build:
|
||||
runs-on: default
|
||||
container:
|
||||
image: mcr.microsoft.com/dotnet/sdk:9.0
|
||||
steps:
|
||||
- name: Install packages
|
||||
run: apt-get update && apt-get install -y --no-install-recommends nodejs git ca-certificates
|
||||
- uses: https://code.forgejo.org/actions/checkout@v7
|
||||
- name: Build
|
||||
env:
|
||||
EnableWindowsTargeting: 'true'
|
||||
run: |
|
||||
dotnet restore
|
||||
dotnet build --configuration Release
|
||||
mv NFCtoKeyboard/bin/Release NFCtoKeyboardRelease
|
||||
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: NFCtoKeyboardRelease
|
||||
path: NFCtoKeyboardRelease
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
build:
|
||||
stage: build
|
||||
image: mcr.microsoft.com/dotnet/sdk:9.0-windowsservercore-ltsc2022
|
||||
tags:
|
||||
- windows
|
||||
script:
|
||||
- dotnet restore
|
||||
- dotnet build --configuration Release
|
||||
- mv .\NFCtoKeyboard\bin\Release\ NFCtoKeyboardRelease
|
||||
artifacts:
|
||||
paths:
|
||||
- NFCtoKeyboardRelease
|
||||
|
|
@ -6,7 +6,7 @@ This software purpose is to read Contactless Smart Card UID (Unique Identifier)
|
|||
|
||||
## Installing
|
||||
If you are running a windows base operating system, you have two options:
|
||||
* Download a prebuild executable and use it: https://gitlab.jonasled.de/jonasled/nfc-to-keyboard/-/jobs/artifacts/master/browse/?job=build
|
||||
* Download a prebuild executable and use it: https://forgejo.jonasled.dev/jonasled/nfc-to-keyboard/actions (artifact `NFCtoKeyboardRelease` of the latest run on master)
|
||||
* Compile the sourcecode yourself
|
||||
|
||||
In case that the software can't be launch, check that .Net Framework 5.0 is installed on your PC.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue