Skip to content

Use mysys2 instead of cygwin #212

Use mysys2 instead of cygwin

Use mysys2 instead of cygwin #212

Workflow file for this run

name: Test
on:
pull_request:
push:
branches: [main]
tags: [v*]
jobs:
test:
strategy:
matrix:
os: [windows-2022, macos-latest, ubuntu-latest]
cygwin: [false]
include:
- os: windows-2022
cygwin: true
runs-on: ${{ matrix.os }}
env:
AUTOBUILD_CONFIGURATION: default
steps:
- name: Disable autocrlf
shell: bash
env:
WINDOWS: ${{ runner.os == 'Windows' }}
run: |
if [[ $WINDOWS == 'true' ]]; then
git config --global core.autocrlf input
fi
- uses: actions/checkout@v4
- uses: ./
with:
artifact-name: autobuild-${{ matrix.os }}-${{ matrix.cygwin }}
cygwin: ${{ matrix.cygwin }}
checkout: false
- shell: bash
run: rm -rf stage
- uses: ./
with:
artifact-name: autobuild-scm-${{ matrix.os }}-${{ matrix.cygwin }}
cygwin: ${{ matrix.cygwin }}
checkout: false
file: autobuild-scm.xml
# Test git-based autobuild install
- uses: ./
with:
artifact-name: autobuild-git-${{ matrix.os }}-${{ matrix.cygwin }}
cygwin: ${{ matrix.cygwin }}
autobuild-version: main
checkout: false
# Test alternative compression-format
- uses: ./
with:
artifact-name: autobuild-tbz2-${{ matrix.os }}-${{ matrix.cygwin }}
cygwin: ${{ matrix.cygwin }}
archive-format: tbz2
checkout: false
- name: Check bz2 package
shell: bash
run: ls *.tar.bz2 >/dev/null || exit "Expected .tar.bz2 package"
# Test custom python version
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: ./
with:
artifact-name: autobuild-py310-${{ matrix.os }}-${{ matrix.cygwin }}
cygwin: ${{ matrix.cygwin }}
setup-python: false
- name: Check python version
shell: bash
run: |
ver="$(python --version)"
[[ "$ver" == "Python 3.10."* ]] || exit "Expected python 3.10, got $ver"