Skip to content

Commit be989a4

Browse files
committed
initial commit
1 parent 07d6d9e commit be989a4

13 files changed

Lines changed: 1461 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
paths:
6+
- 'AmigaRawImageConverter/**'
7+
- 'AmigaRawImageConverter.sln'
8+
- 'global.json'
9+
- '.github/workflows/build.yml'
10+
pull_request:
11+
paths:
12+
- 'AmigaRawImageConverter/**'
13+
- 'AmigaRawImageConverter.sln'
14+
- 'global.json'
15+
16+
jobs:
17+
build:
18+
name: Build on ${{ matrix.os }}
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
os: [ubuntu-latest, windows-latest, macos-latest]
23+
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
28+
- name: Setup .NET
29+
uses: actions/setup-dotnet@v4
30+
with:
31+
dotnet-version: '8.0.x'
32+
33+
- name: Restore
34+
working-directory: AmigaRawImageConverter
35+
run: dotnet restore
36+
37+
- name: Build
38+
working-directory: AmigaRawImageConverter
39+
run: dotnet build -c Release --no-restore

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish:
10+
name: Publish ${{ matrix.rid }}
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
rid: [linux-x64, win-x64, osx-x64]
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup .NET
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: '8.0.x'
24+
25+
- name: Restore
26+
working-directory: AmigaRawImageConverter
27+
run: dotnet restore
28+
29+
- name: Publish
30+
working-directory: AmigaRawImageConverter
31+
run: |
32+
dotnet publish -c Release -r ${{ matrix.rid }} \
33+
--self-contained true /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true \
34+
-o publish/${{ matrix.rid }}
35+
36+
- name: Package artifact
37+
working-directory: AmigaRawImageConverter/publish/${{ matrix.rid }}
38+
run: zip -r ../AmigaRawImageConverter-${{ matrix.rid }}.zip .
39+
40+
- name: Upload to release
41+
uses: softprops/action-gh-release@v1
42+
with:
43+
files: AmigaRawImageConverter/publish/AmigaRawImageConverter-${{ matrix.rid }}.zip
44+
env:
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)