Skip to content

Commit

Permalink
chore: migrate 2/3 ci steps to void-linux containers (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
hrzlgnm authored Nov 10, 2023
1 parent e96013f commit 2d8b4f6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 96 deletions.
35 changes: 21 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,44 @@ on:

jobs:
lint:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: "ghcr.io/void-linux/void-musl-full:latest"

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with: { python-version: "3.8" }

- name: Install codespell
run: pip3 install codespell
run: |
xbps-install -Suy || xbps-install -u xbps
xbps-install -yu
xbps-install -y bash grep curl git python3-codespell cmake clang
- name: Checkout
uses: classabbyamp/treeless-checkout-action@v1

- name: Lint
run: cmake -D FORMAT_COMMAND=clang-format-14 -P cmake/lint.cmake
run: cmake -D FORMAT_COMMAND=clang-format -P cmake/lint.cmake

- name: Spell check
if: always()
run: cmake -P cmake/spell.cmake
sanitize:
needs: [lint]

runs-on: ubuntu-22.04
runs-on: ubuntu-latest
container:
image: "ghcr.io/void-linux/void-musl-full:latest"

env: { CXX: clang++-15 }
env: { CXX: clang++ }

steps:
- uses: actions/checkout@v3

- name: Install Deps
run: |
sudo apt-get update -q
sudo apt-get install ninja-build clang-15 -q -y
xbps-install -Suy || xbps-install -u xbps
xbps-install -yu
xbps-install -y bash git ninja cmake clang
- name: Checkout
uses: classabbyamp/treeless-checkout-action@v1

- name: Configure
run: >-
Expand Down
82 changes: 0 additions & 82 deletions .github/workflows/codeql.yml

This file was deleted.

0 comments on commit 2d8b4f6

Please sign in to comment.