Skip to content

Load the networking stack only when an import needs it (#30) #264

Load the networking stack only when an import needs it (#30)

Load the networking stack only when an import needs it (#30) #264

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test-ubuntu:
uses: ./.github/workflows/test.yml
with:
os: ubuntu-latest
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
lint:
if: github.actor == 'jamescook'
needs: test-ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.4'
bundler-cache: true
- name: Cache clang-tidy results
id: lint-cache
uses: actions/cache@v4
with:
path: .lint-passed
key: lint-${{ hashFiles('ext/**/*.c', 'ext/**/*.h', '.clang-tidy', 'Gemfile', '.github/workflows/*.yml', 'cataract.gemspec', 'Rakefile') }}
- name: Install clang-tidy
if: steps.lint-cache.outputs.cache-hit != 'true'
run: |
sudo apt-get update
sudo apt-get install -y clang-tidy
- name: Run clang-tidy
if: steps.lint-cache.outputs.cache-hit != 'true'
run: |
clang-tidy --version
bundle exec rake lint
touch .lint-passed