Skip to content

Formatted with nph v0.5.1-0-gde5cd48 #161

Formatted with nph v0.5.1-0-gde5cd48

Formatted with nph v0.5.1-0-gde5cd48 #161

Workflow file for this run

name: Continuous
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Install deps
run: |
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libsdl1.2-dev libgc-dev libncurses5-dev jq cmake ninja-build clang libfuse2 valgrind libncurses5
- name: Check out repository code
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up environment
run: |
echo "CC=clang" >> $GITHUB_ENV
echo "CXX=clang++" >> $GITHUB_ENV
echo "LD=clang++" >> $GITHUB_ENV
- name: Set up llvm
run: make STATIC_LLVM=1 prepare-llvm
- name: Compile nim
run: make STATIC_LLVM=1 prepare-nim
- name: Run tests
run: |
cat ci-skipped-tests.txt >>skipped-tests.txt
make STATIC_LLVM=1 test
- name: Run self-compare
run: make STATIC_LLVM=1 compare
- name: Check nph formatting
# Pin nph to a specific version to avoid sudden style differences.
# Updating nph version should be accompanied with running the new
# version on the fluffy directory.
run: |
VERSION="v0.5.1"
ARCHIVE="nph-linux_x64.tar.gz"
curl -L "https://github.com/arnetheduck/nph/releases/download/${VERSION}/${ARCHIVE}" -o ${ARCHIVE}
tar -xzf ${ARCHIVE}
git ls-files | grep .nim$ | ./nph
git diff --exit-code
- name: Create distribution
run: bash make-dist.sh
- name: Update release
if: github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Local copy of the following script:
# wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
bash upload.sh dist/*