Skip to content

Commit 69cb918

Browse files
committed
Format a file and add formatting on push
1 parent a06ab37 commit 69cb918

2 files changed

Lines changed: 28 additions & 6 deletions

File tree

.github/workflows/format.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: format
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.hpp'
7+
- '**.cpp'
8+
- '**.clang-format'
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
check-format-and-tidy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: jidicula/clang-format-action@v4.11.0
20+
with:
21+
clang-format-version: '17'
22+
fallback-style: 'none'

samples/simple_compute/compute_init.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55

66
void SimpleCompute::init()
77
{
8-
etna::initialize(etna::InitParams{
9-
.applicationName = "ComputeSample",
10-
.applicationVersion = VK_MAKE_VERSION(0, 1, 0),
11-
// Uncomment if etna selects the incorrect GPU for you
12-
// .physicalDeviceIndexOverride = 0,
13-
});
8+
etna::initialize(
9+
etna::InitParams{
10+
.applicationName = "ComputeSample", .applicationVersion = VK_MAKE_VERSION(0, 1, 0),
11+
// Uncomment if etna selects the incorrect GPU for you
12+
// .physicalDeviceIndexOverride = 0,
13+
});
1414

1515
context = &etna::get_context();
1616

0 commit comments

Comments
 (0)