diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..20d1bbe --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Build and Upload Release +on: [push] +jobs: + build-and-upload: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install dependencies + run: sudo apt-get install gcc-mingw-w64 meson + + - name: Compile project + run: | + meson setup release --cross w64-mingw32.txt --buildtype release + meson compile -C release + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + path: release/src/dsound.dll + + - name: Upload release + uses: softprops/action-gh-release@v2 + if: github.ref_type == 'tag' + with: + draft: true + files: release/src/dsound.dll diff --git a/meson.build b/meson.build index d736a2e..0c648e1 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,11 @@ -project('hypersonik', 'c', version: '0.4.0') +project( + 'hypersonik', + 'c', + version: '0.4.0', + default_options: ['warning_level=3'] +) add_global_arguments( - '-Wall', '-DCOBJMACROS', '-D_WIN32_WINNT=0x0600', '-ffunction-sections',