Skip to content

Commit

Permalink
set environment variable using env notation
Browse files Browse the repository at this point in the history
  • Loading branch information
pit-ray committed Nov 1, 2023
1 parent 7de820e commit 1b31fd0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ jobs:
choco install -y 7zip.install
curl.exe -OL https://github.com/niXman/mingw-builds-binaries/releases/download/13.2.0-rt_v11-rev0/x86_64-13.2.0-release-win32-seh-ucrt-rt_v11-rev0.7z
7z x x86_64-13.2.0-release-win32-seh-ucrt-rt_v11-rev0.7z
echo "CC=${{github.workspace}}/mingw64/bin/gcc.exe" >> $GITHUB_ENV
echo "CXX=${{github.workspace}}/mingw64/bin/g++.exe" >> $GITHUB_ENV
- name: Cache Libraries
uses: actions/cache@v2
Expand All @@ -56,11 +54,20 @@ jobs:

- name: Install Libraries
run: "tools/install_wxWidgets.bat -mingw 64"
env:
CC: ${{github.workspace}}/mingw64/bin/gcc.exe
CXX: ${{github.workspace}}/mingw64/bin/g++.exe

- name: Configure CMake
run: |
cmake -B debug -DCMAKE_BUILD_TYPE=Debug -G "MinGW Makefiles" -DCCACHE_ENABLE=OFF .
env:
CC: ${{github.workspace}}/mingw64/bin/gcc.exe
CXX: ${{github.workspace}}/mingw64/bin/g++.exe

- name: Build
run: |
cmake --build debug --config Debug
env:
CC: ${{github.workspace}}/mingw64/bin/gcc.exe
CXX: ${{github.workspace}}/mingw64/bin/g++.exe
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.7z
*.exe
*.zip
.VSCodeCounter
Expand Down Expand Up @@ -25,6 +26,7 @@ debugvs
debugvs32
log
manifests
mingw64
release
release_32
release_64
Expand Down

0 comments on commit 1b31fd0

Please sign in to comment.