diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..793d16c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,24 @@ +name: Build ASI Loader + +on: push + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Build + shell: cmd + run: | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars32.bat" + cl -c /GS- /GF /O2 vorbisFile.cpp + link /dll /nodefaultlib /entry:_DllMainCRTStartup@12 vorbisFile.obj Kernel32.lib LIBCMT.LIB libvcruntime.lib libucrt.lib + + - name: Upload artifact + uses: actions/upload-artifact@v6 + with: + name: vorbisFile-dll + path: vorbisFile.dll diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..96dbb5b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release ASI Loader + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+**' + +jobs: + release: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v6 + + - name: Build + shell: cmd + run: | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars32.bat" + cl -c /GS- /GF /O2 vorbisFile.cpp + link /dll /nodefaultlib /entry:_DllMainCRTStartup@12 vorbisFile.obj Kernel32.lib LIBCMT.LIB libvcruntime.lib libucrt.lib + + - name: Create Release + uses: ncipollo/release-action@main + with: + token: ${{ secrets.GITHUB_TOKEN }} + tag: ${{ github.ref_name }} + artifacts: "vorbisFile.dll" + allowUpdates: true