From 8beee3f8f1793630df3d73031fa1cd52f224b8bc Mon Sep 17 00:00:00 2001 From: huantian Date: Mon, 21 Jul 2025 21:39:00 -0700 Subject: [PATCH 1/2] init: github actions build + release script --- .github/workflows/build.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build.yml 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 From 25c01030bff6212d998e5024f4bd732a6133f5ef Mon Sep 17 00:00:00 2001 From: huantian Date: Sat, 26 Jul 2025 00:52:19 -0700 Subject: [PATCH 2/2] meson.build: use warning_level instead of -Wall --- meson.build | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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',