Skip to content
Merged
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
29 changes: 11 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,50 +64,46 @@ jobs:
include:
- arch: x86_64
bit: 64
progpath: C:\Program Files
devtool_path: D:\devtool
- arch: i686
bit: 32
progpath: C:\Program Files (x86)
devtool_path: D:\devtool
env:
MSYSTEM: MINGW${{ matrix.bit }}
MSYS2_PATH_TYPE: inherit
MSYS2_PATH_LIST: D:\msys64\mingw${{ matrix.bit }}\bin;D:\msys64\usr\local\bin;D:\msys64\usr\bin;D:\msys64\bin
MSYS2_TARBALL_URL: http://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20190524.tar.xz
GAUCHE_VERSION_URL: https://practical-scheme.net/gauche/releases/latest.txt
GAUCHE_INSTALLER_URL: https://prdownloads.sourceforge.net/gauche
GAUCHE_PATH: ${{ matrix.progpath }}\Gauche\bin
GAUCHE_PATH: ${{ matrix.devtool_path }}\Gauche\bin
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- name: Install MSYS2
run: |
#del alias:curl
curl -f -o msys2.tar.xz $env:MSYS2_TARBALL_URL
#tar xf msys2.tar.xz
bash -c "7z x msys2.tar.xz -so | 7z x -aoa -si -ttar"
dir
mv msys64 D:\
#tar xf msys2.tar.xz -C /d/
bash -c "7z x msys2.tar.xz -so | 7z x -aoa -si -ttar -oD:"
dir D:\
- name: Add MSYS2 path
run: |
$env:PATH = "$env:MSYS2_PATH_LIST;$env:PATH"
echo "::set-env name=PATH::$env:PATH"
- name: Run MSYS2 once
run: |
$script = @'
bash -lc @'
pwd
uname -m
uname -a
echo $PATH
'@
bash -lc $script
- name: Install MinGW-w64
run: |
$script = @'
bash -lc @'
pacman -S --noconfirm base-devel
pacman -S --noconfirm mingw${{ matrix.bit }}/mingw-w64-${{ matrix.arch }}-toolchain
'@
bash -lc $script
- name: Install Gauche
run: |
#del alias:curl
Expand All @@ -117,7 +113,7 @@ jobs:
echo $env:GAUCHE_INSTALLER
curl -f -L -o $env:GAUCHE_INSTALLER $env:GAUCHE_INSTALLER_URL/$env:GAUCHE_INSTALLER
dir
msiexec /i $env:GAUCHE_INSTALLER /quiet /qn /norestart
msiexec /a $env:GAUCHE_INSTALLER /quiet /qn /norestart TARGETDIR=${{ matrix.devtool_path }}
- name: Add Gauche path
run: |
$env:PATH = "$env:GAUCHE_PATH;$env:PATH"
Expand All @@ -127,7 +123,7 @@ jobs:
gosh -V
- name: Install tools
run: |
$script = @'
bash -lc @'
#pacman -S --noconfirm msys/winpty
#winpty --version
where openssl
Expand All @@ -136,25 +132,22 @@ jobs:
where openssl
/usr/bin/openssl version
'@
bash -lc $script
- name: Build
run: |
$script = @'
bash -lc @'
pwd
cd $GITHUB_WORKSPACE
gcc -v
./DIST gen
src/mingw-dist.sh
'@
bash -lc $script
- name: Test
run: |
$script = @'
bash -lc @'
pwd
cd $GITHUB_WORKSPACE
make check
'@
bash -lc $script
#- name: Upload result
# if: success() || failure()
# uses: actions/upload-artifact@v1
Expand Down