mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
Adapts #23108 to the version-2-0 branch and makes the 2.0 compiler define `nimHasNoLineTooLong` as the devel compiler depends on it to not turn off `hint[LineTooLong]`, which means the 2.0 compiler errors on the devel compiler config (as mentioned in https://github.com/nim-lang/Nim/issues/23178#issuecomment-1880511322). Would have these as separate PRs but the macos CI PR would have to be merged first, then the second PR would have to be rebased.
75 lines
2.2 KiB
YAML
75 lines
2.2 KiB
YAML
name: Packages CI
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- 'devel'
|
|
- 'version-2-0'
|
|
- 'version-1-6'
|
|
- 'version-1-2'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-20.04, macos-12]
|
|
cpu: [amd64]
|
|
batch: ["allowed_failures", "0_3", "1_3", "2_3"] # list of `index_num`
|
|
name: '${{ matrix.os }} (batch: ${{ matrix.batch }})'
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 60 # refs bug #18178
|
|
env:
|
|
NIM_TEST_PACKAGES: "1"
|
|
NIM_TESTAMENT_BATCH: ${{ matrix.batch }}
|
|
steps:
|
|
- name: 'Checkout'
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: 'Install node.js 20.x'
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20.x'
|
|
|
|
- name: 'Install dependencies (Linux amd64)'
|
|
if: runner.os == 'Linux' && matrix.cpu == 'amd64'
|
|
run: |
|
|
sudo apt-fast update -qq
|
|
DEBIAN_FRONTEND='noninteractive' \
|
|
sudo apt-fast install --no-install-recommends -yq \
|
|
libcurl4-openssl-dev libgc-dev libsdl1.2-dev libsfml-dev \
|
|
valgrind libc6-dbg libblas-dev xorg-dev
|
|
- name: 'Install dependencies (macOS)'
|
|
if: runner.os == 'macOS'
|
|
run: brew install boehmgc make sfml gtk+3
|
|
- name: 'Install dependencies (Windows)'
|
|
if: runner.os == 'Windows'
|
|
shell: bash
|
|
run: |
|
|
set -e
|
|
. ci/funs.sh
|
|
nimInternalInstallDepsWindows
|
|
echo_run echo "${{ github.workspace }}/dist/mingw64/bin" >> "${GITHUB_PATH}"
|
|
|
|
- name: 'Add build binaries to PATH'
|
|
shell: bash
|
|
run: echo "${{ github.workspace }}/bin" >> "${GITHUB_PATH}"
|
|
|
|
- name: 'System information'
|
|
shell: bash
|
|
run: . ci/funs.sh && nimCiSystemInfo
|
|
|
|
- name: 'Build csourcesAny'
|
|
shell: bash
|
|
run: . ci/funs.sh && nimBuildCsourcesIfNeeded CC=gcc ucpu='${{ matrix.cpu }}'
|
|
|
|
- name: 'koch, Run CI'
|
|
shell: bash
|
|
run: . ci/funs.sh && nimInternalBuildKochAndRunCI
|