Skip to content

Commit 8ca62be

Browse files
committed
move to github
1 parent aa94901 commit 8ca62be

53 files changed

Lines changed: 332 additions & 4904 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.forgejo/issue_template/bug.yaml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.forgejo/issue_template/config.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.forgejo/issue_template/feature.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/build.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- main
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch: {}
9+
10+
env:
11+
DOTNET_VERSION: '10.0.x'
12+
13+
jobs:
14+
build:
15+
name: Build
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
project:
20+
- Common.Mod
21+
- Common.Mod.Common
22+
- Common.Mod.Generator
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v6
26+
- name: Setup .NET SDK 10
27+
uses: actions/setup-dotnet@v5
28+
with:
29+
dotnet-version: ${{ env.DOTNET_VERSION }}
30+
- name: Restore dependencies from cache
31+
uses: actions/cache@v5
32+
with:
33+
key: deps-${{ hashFiles('bootstrap.sh') }}
34+
path: |
35+
vendor/vs.tar.gz
36+
vendor/*.zip
37+
- name: Bootstrap
38+
run: bash bootstrap.sh
39+
- name: Build
40+
run: bash build.sh --target Build --general-project ${{ matrix.project }}

.github/workflows/publish.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
on:
2+
push:
3+
tags:
4+
- '*'
5+
6+
permissions:
7+
packages: write
8+
9+
env:
10+
DOTNET_VERSION: '10.0.x'
11+
NUGET_REGISTRY_URL: https://nuget.pkg.github.com/devpikachu/index.json
12+
NUGET_REGISTRY_USERNAME: devpikachu
13+
14+
jobs:
15+
build:
16+
name: Build & Publish
17+
runs-on: ubuntu-latest
18+
strategy:
19+
matrix:
20+
project:
21+
- Common.Mod
22+
- Common.Mod.Common
23+
- Common.Mod.Generator
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v6
27+
- name: Setup .NET SDK 10
28+
uses: actions/setup-dotnet@v5
29+
with:
30+
dotnet-version: ${{ env.DOTNET_VERSION }}
31+
- name: Restore dependencies from cache
32+
uses: actions/cache@v5
33+
with:
34+
key: deps-${{ hashFiles('bootstrap.sh') }}
35+
path: |
36+
vendor/vs.tar.gz
37+
vendor/*.zip
38+
- name: Bootstrap
39+
run: bash bootstrap.sh
40+
- name: Build
41+
run: bash build.sh --target Package --general-project ${{ matrix.project }} --general-version $GITHUB_REF_NAME
42+
- name: Publish
43+
run: |
44+
dotnet nuget add source --name github --username $NUGET_REGISTRY_USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text $NUGET_REGISTRY_URL
45+
dotnet nuget push --source github out/*.nupkg

.github/workflows/release.yaml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on:
2+
push:
3+
tags:
4+
- '*'
5+
6+
permissions:
7+
contents: write
8+
9+
env:
10+
DOTNET_VERSION: '10.0.x'
11+
12+
jobs:
13+
build:
14+
name: Build & Release
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v6
19+
- name: Setup .NET SDK 10
20+
uses: actions/setup-dotnet@v5
21+
with:
22+
dotnet-version: ${{ env.DOTNET_VERSION }}
23+
- name: Restore dependencies from cache
24+
uses: actions/cache@v5
25+
with:
26+
key: deps-${{ hashFiles('bootstrap.sh') }}
27+
path: |
28+
vendor/vs.tar.gz
29+
vendor/*.zip
30+
- name: Bootstrap
31+
run: bash bootstrap.sh
32+
- name: Build
33+
run: |
34+
bash build.sh --target Archive --general-project Common.Mod --general-version $GITHUB_REF_NAME
35+
bash build.sh --target Archive --general-project Common.Mod.Common --general-version $GITHUB_REF_NAME
36+
bash build.sh --target Archive --general-project Common.Mod.Generator --general-version $GITHUB_REF_NAME
37+
- name: Release
38+
uses: softprops/action-gh-release@v2
39+
with:
40+
draft: true
41+
files: out/*.zip

.github/workflows/test.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
on:
2+
pull_request:
3+
branches:
4+
- main
5+
push:
6+
branches:
7+
- main
8+
workflow_dispatch: {}
9+
10+
env:
11+
DOTNET_VERSION: '10.0.x'
12+
13+
jobs:
14+
build:
15+
name: Build & Test
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v6
20+
- name: Setup .NET SDK 10
21+
uses: actions/setup-dotnet@v5
22+
with:
23+
dotnet-version: ${{ env.DOTNET_VERSION }}
24+
- name: Restore dependencies from cache
25+
uses: actions/cache@v5
26+
with:
27+
key: deps-${{ hashFiles('bootstrap.sh') }}
28+
path: |
29+
vendor/vs.tar.gz
30+
vendor/*.zip
31+
- name: Bootstrap
32+
run: bash bootstrap.sh
33+
- name: Test
34+
run: bash build.sh --target Test --general-project Common.Mod.Test

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ bin/
33
obj/
44
run/
55
vendor/
6+
67
*.sln.DotSettings.user

.idea/.idea.Common.Mod/.idea/.name

Lines changed: 0 additions & 1 deletion
This file was deleted.

.noai

Whitespace-only changes.

0 commit comments

Comments
 (0)