parser: warn on unused imports, even when they are declared via `impo… #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Vinix | |
on: | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- "**.md" | |
- "**.yml" | |
jobs: | |
vinix-build: | |
runs-on: ubuntu-20.04 | |
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v' | |
timeout-minutes: 10 | |
env: | |
VFLAGS: -gc none | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install build-essential meson -y | |
- name: Build V | |
run: make | |
- name: Clone current Vinix | |
run: git clone https://github.com/vlang/vinix.git | |
- name: Attempt to build the Vinix kernel (debug) | |
run: cd vinix/kernel && make PROD=false CFLAGS="-D__vinix__ -O2 -g -pipe" V="../../v" && make clean | |
- name: Attempt to build the Vinix kernel (prod) | |
run: cd vinix/kernel && make PROD=true CFLAGS="-D__vinix__ -O2 -g -pipe" V="../../v" && make clean | |
- name: Attempt to build the util-vinix (debug) | |
run: cd vinix/util-vinix && make PROD=false V="$(realpath ../../v)" VFLAGS="-os vinix -gc none" CFLAGS="-D__vinix__ -O2 -g -pipe" && make clean | |
- name: Attempt to build the util-vinix (prod) | |
run: cd vinix/util-vinix && make PROD=true V="$(realpath ../../v)" VFLAGS="-os vinix -gc none" CFLAGS="-D__vinix__ -O2 -g -pipe" && make clean |