Skip to content

Commit 58258ff

Browse files
authored
Actions: Update CI (#21)
- Avoid duplicated build when creating a PR - Update Ubuntu docker image to latest (24.04 LTS) - Explicit name - Update actions/checkout to v6 - Remove unnecessary DESTDIR environment variable - Remove extra spaces
1 parent d83da6c commit 58258ff

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on: [pull_request]
44

55
jobs:
66
build:
77

88
runs-on: ubuntu-latest
99

1010
container:
11-
image: ubuntu:22.04
11+
image: ubuntu:latest
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- name: Checkout
15+
uses: actions/checkout@v6
16+
1517
- name: Install Dependencies
1618
run: |
1719
apt update
1820
apt install -y libglib2.0-dev meson valac
21+
1922
- name: Build
20-
env:
21-
DESTDIR: out
2223
run: |
2324
meson setup builddir --prefix=/usr -Ddemo=true
2425
meson compile -C builddir
2526
meson install -C builddir
2627
2728
lint:
28-
2929
runs-on: ubuntu-latest
30-
30+
3131
container:
3232
image: valalang/lint
33-
33+
3434
steps:
35-
- uses: actions/checkout@v4
35+
- name: Checkout
36+
uses: actions/checkout@v6
37+
3638
- name: Lint
3739
run: io.elementary.vala-lint -d .

0 commit comments

Comments
 (0)