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

updated win mingw build via appyeyor CI #584

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 @@
# Set the default behavior to unix line endings, required by perl code
* text eol=lf
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
106 changes: 106 additions & 0 deletions .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: CI_build

on: [push, pull_request]

jobs:

build_windows_msys2:

runs-on: windows-latest
strategy:
fail-fast: false
matrix:
build_configuration: [Release, Debug]
build_platform: [x86_64, i686]

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Make aspell exe
working-directory: .\
run: |
Write-host "${{ matrix.build_platform }}"
Write-host "${{ matrix.build_configuration }}"
$Env:Path = 'C:\msys64\usr\bin' + [IO.Path]::PathSeparator + $Env:Path
if ( $${{ matrix.build_platform == 'i686'}} ) {$Env:MSYSTEM = 'MINGW32'}
if ( $${{ matrix.build_platform == 'i686'}} ) {$Env:Path = 'C:\msys64\mingw32\bin' + [IO.Path]::PathSeparator + $Env:Path}
if ( $${{ matrix.build_platform == 'x86_64'}} ) {$Env:MSYSTEM = 'MINGW64'}
if ( $${{ matrix.build_platform == 'x86_64'}} ) {$Env:Path = 'C:\msys64\mingw64\bin' + [IO.Path]::PathSeparator + $Env:Path}
if ( $${{ matrix.build_configuration == 'Debug'}} ) {$Env:DEBUG = '1'}
bash -lc "pacman --noconfirm -Syuu"
bash -lc "pacman --noconfirm -Syuu"
if ( $${{ matrix.build_platform == 'i686'}} ) {bash -lc "pacman --noconfirm -S mingw-w64-i686-gcc mingw-w64-i686-make"}
if ( $${{ matrix.build_platform == 'x86_64'}} ) {bash -lc "pacman --noconfirm -S mingw-w64-x86_64-gcc mingw-w64-x86_64-make"}
Write-Output "Tools version:"
Write-Output (((gcc --version) | select-object -first 1) + " " + (gcc -dumpmachine))
Write-Output (mingw32-make --version) | select-object -first 1
Write-Output (sh --version) | select-object -first 1
cd auto
perl -I ./ mk-src.pl
cd ../win32
mingw32-make
mingw32-make prefix=./installation install

- name: Archive artifacts for ${{ matrix.build_platform}} / Release
if: matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v4
with:
name: aspell_win.${{ matrix.build_platform}}.${{ matrix.build_configuration}}
path: aspell.exe


build_linux:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build_platform: ["x86_64", i686]

steps:
- uses: actions/checkout@v4

- name: Prepare generated files
working-directory: ./auto
run: |
perl -I ./ mk-src.pl

- name: Install packages via apt
run: |
sudo apt-get -qq update
sudo apt-get -qq install -y mingw-w64
(for alt in i686-w64-mingw32-g++ i686-w64-mingw32-gcc x86_64-w64-mingw32-g++ x86_64-w64-mingw32-gcc; do sudo update-alternatives --set $alt /usr/bin/$alt-posix; done);

- name: build make mingw
working-directory: ./win32
run: |
export PATH=/usr/bin/${{ matrix.build_platform }}-w64-mingw32-gcc/bin:/usr/bin/${{ matrix.build_platform }}-w64-mingw32-g++/bin:$PATH
${{ matrix.build_platform }}-w64-mingw32-g++ --version
make TARGET=${{ matrix.build_platform }}-w64-mingw32-
make TARGET=${{ matrix.build_platform }}-w64-mingw32- prefix=./installation install


build_linux_native:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install packages via apt
run: |
sudo apt-get -y update
sudo apt-get -y install make autopoint texinfo libtool intltool bzip2 gettext g++-multilib g++-9 g++-10 g++-11 g++-12 clang-11 clang-12 clang-13 clang-14 clang-15
sudo apt-get -y purge aspell

- name: build
working-directory: ./
run: |
./autogen
./sanity-check.sh
CXX="g++ -m32" CC="gcc -m32" ./sanity-check.sh
CXX=g++-9 CC=gcc-9 ./sanity-check.sh
CXX=g++-10 CC=gcc-10 ./sanity-check.sh
CXX=clang++-15 CC=clang-15 ./sanity-check.sh
./config-opt && make -C build -j2
1 change: 1 addition & 0 deletions common/file_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include "fstream.hpp"
#include "errors.hpp"
#include "string_list.hpp"
#include "asc_ctype.hpp"

#ifdef USE_FILE_LOCKS
# include <fcntl.h>
Expand Down
1 change: 1 addition & 0 deletions common/lock.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define DISTRIBNET_LOCK__HPP

#include <assert.h>
#include <cstddef>

#include "settings.h"

Expand Down
Loading