Skip to content

Commit 22f4c95

Browse files
authored
Merge pull request #192 from MightyCreak/fix-ci
Fix CI/CD
2 parents d2559c1 + 5469e54 commit 22f4c95

File tree

10 files changed

+30
-38
lines changed

10 files changed

+30
-38
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
run: |
2626
sudo apt-get -y install libgirepository1.0-dev
2727
pip install -r requirements.dev.txt
28+
pip list
2829
2930
- name: Flake8
3031
run: |
@@ -43,34 +44,23 @@ jobs:
4344
- uses: actions/setup-python@v4
4445
with:
4546
python-version: '3.8'
46-
47-
- name: Install dependencies
48-
run: |
49-
sudo apt-get -y install appstream appstream-util desktop-file-utils gettext
50-
51-
- name: Meson build
52-
uses: BSFishy/[email protected]
53-
with:
54-
action: build
55-
setup-options: --prefix=/tmp/diffuse
56-
57-
- name: Meson test
58-
uses: BSFishy/[email protected]
59-
with:
60-
action: test
47+
- run: sudo apt-get -y install meson appstream appstream-util desktop-file-utils gettext
48+
- run: pip install meson ninja
49+
- run: meson setup build
50+
- run: meson compile -C build
51+
- run: meson test -C build
6152

6253
flatpak-build-test:
6354
runs-on: ubuntu-latest
6455
container:
65-
image: bilelmoussaoui/flatpak-github-actions:gnome-40
56+
image: bilelmoussaoui/flatpak-github-actions:gnome-44
6657
options: --privileged
6758
steps:
6859
- uses: actions/checkout@v3
6960
- uses: actions/setup-python@v4
7061
with:
7162
python-version: '3.8'
72-
- name: Flatpak builder
73-
uses: flatpak/flatpak-github-actions/flatpak-builder@v4
63+
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
7464
with:
7565
bundle: "diffuse.flatpak"
7666
manifest-path: "io.github.mightycreak.Diffuse.yml"

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
- Dialog: prompt only once if several files needs to be reloaded (@yuriiz)
2020
- Use GTK3's Gtk.Application/Gtk.ApplicationWindow (@yuriiz)
2121
- Split `DiffuseApplication` and `DiffuseWindow` classes in their own files (@MightyCreak)
22+
- Use new Meson (from 0.50 to 0.55) and fixed deprecation warnings (@MightyCreak)
23+
- Update from GNOME 42 to GNOME 44 (@MightyCreak)
24+
- Mac: fix the shortcut for first/previous/next/last differences, now uses ⌘
25+
instead of Ctrl (@krlmlr)
2226

2327
### Fixed
2428

data/io.github.mightycreak.Diffuse.appdata.xml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<screenshots>
2020
<screenshot type="default">
2121
<caption>Main window: diff between two files</caption>
22-
<image>https://mightycreak.github.io/diffuse/images/screenshot_v0.7.0.png</image>
22+
<image>https://mightycreak.github.io/diffuse/docs/images/screenshot_v0.7.0.png</image>
2323
</screenshot>
2424
</screenshots>
2525

docs/developers/developers-setup.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ pip3 install -r requirements.dev.txt
7171
To build, test and install Diffuse locally:
7272

7373
```sh
74-
flatpak install runtime/org.gnome.Sdk/$(uname -p)/42
74+
flatpak install runtime/org.gnome.Sdk/$(uname -p)/44
7575
flatpak-builder --user --install build-flatpak io.github.mightycreak.Diffuse.yml
7676
```
7777

@@ -80,15 +80,15 @@ flatpak-builder --user --install build-flatpak io.github.mightycreak.Diffuse.yml
8080
To run Diffuse through Flatpak:
8181

8282
```sh
83-
flatpak run io.github.mightycreak.Diffuse
83+
flatpak run --user io.github.mightycreak.Diffuse
8484
```
8585

8686
#### Uninstall
8787

8888
To uninstall Diffuse:
8989

9090
```sh
91-
flatpak remove io.github.mightycreak.Diffuse
91+
flatpak remove --user io.github.mightycreak.Diffuse
9292
```
9393

9494
### Setup on Linux using Meson
@@ -101,17 +101,16 @@ To build and test Diffuse:
101101

102102
```sh
103103
meson setup build
104-
cd build
105-
meson compile
106-
meson test
104+
meson compile -C build
105+
meson test -C build
107106
```
108107

109108
#### Install on system and run
110109

111110
To install Diffuse on your system (e.g. `/usr/local/`):
112111

113112
```sh
114-
meson install # requires admin privileges
113+
meson install -C build # requires admin privileges
115114
```
116115

117116
To run Diffuse:
@@ -128,7 +127,7 @@ Meson allows to change the default installation directories, see
128127
To install Diffuse in a custom directory (e.g. `~/bin/diffuse`):
129128

130129
```sh
131-
meson install --destdir ~/bin/diffuse
130+
meson install -C build --destdir ~/bin/diffuse
132131
```
133132

134133
To run Diffuse:
@@ -159,9 +158,8 @@ To build and test Diffuse:
159158

160159
```sh
161160
meson setup build
162-
cd build
163-
meson compile
164-
meson test
161+
meson compile -C build
162+
meson test -C build
165163
```
166164

167165
#### Install on system and run
@@ -170,7 +168,7 @@ To install Diffuse on your system (e.g. `/Applications/` and `/opt/homebrew/`
170168
or `/usr/local/`):
171169

172170
```sh
173-
meson install # requires admin privileges
171+
meson install -C build # requires admin privileges
174172
```
175173

176174
To run Diffuse:

docs/images/screenshot_v0.7.0.png

233 KB
Loading

io.github.mightycreak.Diffuse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
app-id: io.github.mightycreak.Diffuse
22
runtime: org.gnome.Platform
3-
runtime-version: '42'
3+
runtime-version: '44'
44
sdk: org.gnome.Sdk
55
command: diffuse
66
finish-args:

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project('diffuse',
22
version: '0.7.7',
3-
meson_version: '>= 0.50',
3+
meson_version: '>= 0.55',
44
license: 'GPL-2.0-or-later',
55
default_options: [ 'warning_level=2' ])
66

requirements.dev.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-r requirements.txt
2-
flake8 ~= 3.8
3-
flake8-noqa ~= 1.2
4-
mypy ~= 0.910
2+
flake8 ~= 6.0
3+
flake8-noqa ~= 1.3
4+
mypy ~= 1.1

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PyGObject ~= 3.40
1+
PyGObject ~= 3.44

src/diffuse/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ moduledir = join_paths(pkgdatadir, 'diffuse')
44
python = import('python')
55

66
conf = configuration_data()
7-
conf.set('PYTHON', python.find_installation('python3').path())
7+
conf.set('PYTHON', python.find_installation('python3').full_path())
88
conf.set('VERSION', meson.project_version())
99
conf.set('PKGDATADIR', pkgdatadir)
1010
conf.set('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))

0 commit comments

Comments
 (0)