Files
wasmer/.github/workflows/lint.yaml
Felix Schütt be322f8fba Remove libxcb and libwayland dependencies from config
See https://github.com/wasmerio/wasmer/issues/2822
For some reason these libraries get linked into the final
release binary, which should not be the default (since
these dependencies are only needed for the experimental-io
extension).
2022-06-20 14:29:55 +02:00

40 lines
1.1 KiB
YAML

on:
push:
branches:
- '**'
- '!master'
name: lint
env:
RUST_BACKTRACE: 1
jobs:
lint:
name: Code lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
components: rustfmt, clippy
- name: Install LLVM (Linux)
run: |
curl --proto '=https' --tlsv1.2 -sSf https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/clang+llvm-13.0.0-x86_64-linux-gnu-ubuntu-16.04.tar.xz -L -o /opt/llvm.tar.xz
mkdir -p /opt/llvm-12
tar xf /opt/llvm.tar.xz --strip-components=1 -C /opt/llvm-12
echo '/opt/llvm-12/bin' >> $GITHUB_PATH
echo 'LLVM_SYS_120_PREFIX=/opt/llvm-12' >> $GITHUB_ENV
- run: make lint
env:
ENABLE_CRANELIFT: "1"
ENABLE_LLVM: "1"
ENABLE_SINGLEPASS: "1"
- name: Assert no files have changed
run: |
git status
! [[ $(git status -s) ]]