Skip to content

Commit

Permalink
ci - more mimngw
Browse files Browse the repository at this point in the history
  • Loading branch information
TorusHyperV committed Nov 1, 2024
1 parent 6572d0d commit 416c36d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,25 @@ jobs:
steps:
- uses: actions/checkout@v4

# Conditional MinGW setup for Windows
- name: Set up MSYS2 and install MinGW
# Set up MSYS2 environment and install MinGW on Windows
- name: Set up MSYS2 with MinGW
if: ${{ matrix.os == 'windows-latest' }}
run: |
pacman -Sy --noconfirm
pacman -S --noconfirm mingw-w64-x86_64-gcc
shell: bash
uses: msys2/setup-msys2@v2
with:
update: true
install: mingw-w64-x86_64-gcc

# Build step - uses appropriate compiler based on OS
- name: Build Project
run: |
if [ "${{ matrix.compiler }}" == "mingw-g++" ]; then
/mingw64/bin/g++ -I./src ./XanaduCLI/XanaduCLI.cpp ./src/XanaduXVD.cpp ./src/XVDTypes.cpp -o XanaduCLI${{ matrix.extension }}
mingw64/bin/g++ -I./src ./XanaduCLI/XanaduCLI.cpp ./src/XanaduXVD.cpp ./src/XVDTypes.cpp -o XanaduCLI${{ matrix.extension }}
else
${{ matrix.compiler }} -I./src ./XanaduCLI/XanaduCLI.cpp ./src/XanaduXVD.cpp ./src/XVDTypes.cpp -o XanaduCLI${{ matrix.extension }}
fi
shell: bash

# Upload Release Asset for each OS build
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit 416c36d

Please sign in to comment.