Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for Windows in CI #87

Merged
merged 1 commit into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Loading