Skip to content

Commit

Permalink
Remove installation of clang
Browse files Browse the repository at this point in the history
This is possible thanks to
actions/runner-images#447
  • Loading branch information
NilsIrl committed Mar 20, 2020
1 parent 522ebae commit a461372
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
name: Format sourcecode
on:
push:
paths:
- '.github/workflows/format.yml'
- 'src/**.c'
- 'src/**.h'
pull_request:
types: [opened, synchronize, reopened]
paths:
- '.github/workflows/format.yml'
- 'src/**.c'
- 'src/**.h'
on: [push, pull_request]
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo add-apt-repository -y 'deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main'
sudo apt install clang-format-9
- name: Format code
run: |
find src/ -type f -name '*.c' -name '*.c' | xargs clang-format-9 -i
Expand Down

0 comments on commit a461372

Please sign in to comment.