Skip to content

Commit 8ecfa7f

Browse files
committed
add release workflow
1 parent 026cd28 commit 8ecfa7f

2 files changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build ASI Loader
2+
3+
on:
4+
push:
5+
branches: [ test ]
6+
7+
jobs:
8+
build:
9+
runs-on: windows-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Build
16+
shell: cmd
17+
run: |
18+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
19+
cl -c /GS- /GF /O2 vorbisFile.cpp
20+
link /dll /nodefaultlib /entry:_DllMainCRTStartup@12 vorbisFile.obj Kernel32.lib LIBCMT.LIB
21+
22+
- name: Upload artifact
23+
uses: actions/upload-artifact@v4
24+
with:
25+
name: vorbisFile-dll
26+
path: vorbisFile.dll

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release ASI Loader
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v[0-9]+.[0-9]+.[0-9]+**'
7+
8+
jobs:
9+
release:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Build
17+
shell: cmd
18+
run: |
19+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
20+
cl -c /GS- /GF /O2 vorbisFile.cpp
21+
link /dll /nodefaultlib /entry:_DllMainCRTStartup@12 vorbisFile.obj Kernel32.lib LIBCMT.LIB
22+
23+
- name: Create Release
24+
uses: ncipollo/release-action@main
25+
with:
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
tag: ${{ github.ref_name }}
28+
artifacts: "vorbisFile.dll"
29+
allowUpdates: true

0 commit comments

Comments
 (0)