mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
* refactor all code that builds csources * fixup * nim_csourcesDir_v0 + nim_csourcesDir * remove deprecated, unused scripts from ci/ * reuse nimCsourcesHash in ci * simplify CI pipelines by reusing nimBuildCsourcesIfNeeded * simplify ci_docs.yml by reusing nimBuildCsourcesIfNeeded * cleanup * use csources_v1 as destination dir * fixup * remove pushCsources * address comment: remove build.sh support for now * fixup
69 lines
2.1 KiB
YAML
69 lines
2.1 KiB
YAML
name: Packages CI
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-18.04, macos-10.15]
|
|
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 }}
|
|
env:
|
|
NIM_TEST_PACKAGES: "1"
|
|
NIM_TESTAMENT_BATCH: ${{ matrix.batch }}
|
|
steps:
|
|
- name: 'Checkout'
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- name: 'Install node.js 12.x'
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '12.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: |
|
|
mkdir dist
|
|
curl -L https://nim-lang.org/download/mingw64.7z -o dist/mingw64.7z
|
|
curl -L https://nim-lang.org/download/dlls.zip -o dist/dlls.zip
|
|
7z x dist/mingw64.7z -odist
|
|
7z x dist/dlls.zip -obin
|
|
echo "${{ github.workspace }}/dist/mingw64/bin" >> "${GITHUB_PATH}"
|
|
|
|
- name: 'Add build binaries to PATH'
|
|
shell: bash
|
|
run: echo "${{ github.workspace }}/bin" >> "${GITHUB_PATH}"
|
|
|
|
- name: 'Build csourcesAny'
|
|
shell: bash
|
|
run: . ci/funs.sh && nimBuildCsourcesIfNeeded CC=gcc ucpu='${{ matrix.cpu }}'
|
|
|
|
- name: 'Build koch'
|
|
shell: bash
|
|
run: nim c koch
|
|
- name: 'Run CI'
|
|
shell: bash
|
|
run: ./koch runCI
|
|
|
|
- name: 'Show failed tests'
|
|
if: failure()
|
|
shell: bash
|
|
run: nim c -r tools/ci_testresults.nim
|