Skip to content

Commit

Permalink
Build for Windows in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsc committed Apr 25, 2024
1 parent 8648ea3 commit de3bb19
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto
testsuite/tests/* -text
59 changes: 59 additions & 0 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,62 @@ jobs:
with:
name: fastbasic-macos-arm64.zip
path: build/fastbasic.zip

build-windows:
name: Build and run tests on Windows
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Setup 32-bit compiler
run: |
echo "C:\msys64\mingw32\bin" >> $GITHUB_PATH
echo "C:\msys64\usr\bin" >> $GITHUB_PATH
echo "CC=i686-w64-mingw32-gcc" >> "$GITHUB_ENV"
shell: bash
- name: Install ZIP
run: |
export
pacman -Sy --noconfirm --noprogressbar --needed zip
shell: bash
- name: make
run: |
i686-w64-mingw32-gcc -v
make -j2
shell: bash
- name: running testsuite
run: make test -j2
- name: make dist
run: make dist
shell: bash
- name: Archive ZIP Windows 32-bit
uses: actions/upload-artifact@v4
with:
name: fastbasic-windows-32bit.zip
path: build/fastbasic.zip
- name: make distclean
run: make distclean
shell: bash
- name: Setup 64-bit compiler
run: |
echo "CC=x86_64-w64-mingw32-gcc" >> "$GITHUB_ENV"
echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH
shell: bash
- name: make
run: |
x86_64-w64-mingw32-gcc -v
make -j2
shell: bash
- name: running testsuite
run: make test -j2
shell: bash
- name: make dist
run: make dist
shell: bash
- name: Archive ZIP Windows 64-bit
uses: actions/upload-artifact@v4
with:
name: fastbasic-windows-64bit.zip
path: build/fastbasic.zip

0 comments on commit de3bb19

Please sign in to comment.