From 8328cc267257d44372df38c1cb3f68b3d16cb624 Mon Sep 17 00:00:00 2001 From: franzageek <88248950+franzageek@users.noreply.github.com> Date: Sat, 3 Aug 2024 11:46:26 +0200 Subject: [PATCH] Update and rename gcc-build.yml to gcc-windows-build.yml --- .github/workflows/gcc-build.yml | 25 ------------------- .github/workflows/gcc-windows-build.yml | 32 +++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 25 deletions(-) delete mode 100644 .github/workflows/gcc-build.yml create mode 100644 .github/workflows/gcc-windows-build.yml diff --git a/.github/workflows/gcc-build.yml b/.github/workflows/gcc-build.yml deleted file mode 100644 index 0b9b436..0000000 --- a/.github/workflows/gcc-build.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: GCC Build - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - - name: Install dependencies - run: sudo apt-get install -y build-essential - - - name: Compile - run: | - mkdir -p build - g++ src/*.cxx -o bin/WinEFIMounter.exe -Os -std=c++23 --static -Wall -Wextra -pedantic diff --git a/.github/workflows/gcc-windows-build.yml b/.github/workflows/gcc-windows-build.yml new file mode 100644 index 0000000..fbbc42e --- /dev/null +++ b/.github/workflows/gcc-windows-build.yml @@ -0,0 +1,32 @@ +name: GCC Windows Build + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Install MSYS2 + uses: msys2/setup-msys2@v2 + with: + msystem: MINGW64 + install: >- + mingw-w64-x86_64-gcc + mingw-w64-x86_64-make + + - name: Add MSYS2 to PATH + run: echo "::add-path::C:\msys64\mingw64\bin" + + - name: Compile + run: | + g++ src/*.cxx -o bin/WinEFIMounter.exe -Os -std=c++23 --static -Wall -Wextra -pedantic