File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ permissions:
10
10
11
11
jobs :
12
12
generate :
13
- name : Generate cross-platform builds
13
+ name : Generate builds
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : olegtarasov/get-tag@v2.1
@@ -22,14 +22,17 @@ jobs:
22
22
- name : Checkout the repository
23
23
uses : actions/checkout@v4
24
24
25
- - uses : actions/setup-go@v5
26
- with :
27
- go-version : ' 1.21'
25
+ - name : Install dependencies
26
+ run : |
27
+ # TODO(r0x0d): Refactor this https://issues.redhat.com/browse/RSPEED-339
28
+ sudo apt update -y
29
+ sudo apt install libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-4.0 -y
30
+ make install
28
31
29
32
- name : Generate distribution tarball
30
33
run : |
31
- mkdir dist && make distribution-tarball
32
- sudo mv *.tar.gz dist/
34
+ VENV_PATH=$(poetry env info --path)
35
+ make distribution-tarball SPHINXBUILD=$VENV_PATH/bin/sphinx-build
33
36
env :
34
37
VERSION : ' ${{ steps.tagName.outputs.tag }}'
35
38
Original file line number Diff line number Diff line change @@ -81,11 +81,11 @@ clean: ## Clean project files
81
81
command_line_assistant.egg-info \
82
82
.ruff_cache \
83
83
.coverage \
84
- dist \
85
84
.tox \
86
85
junit.xml \
87
86
coverage.xml \
88
87
.mypy_cache \
88
+ dist \
89
89
$(PKGNAME ) -$(VERSION ) .tar.gz
90
90
$(MAKE ) -C docs clean
91
91
$(MAKE ) -C data/release/selinux
@@ -126,6 +126,7 @@ html-docs: ## Build html docs
126
126
$(MAKE ) -C docs html
127
127
128
128
distribution-tarball : clean # # Generate distribution tarball
129
+ mkdir dist
129
130
tar --create \
130
131
--gzip \
131
132
--file /tmp/$(PKGNAME ) -$(VERSION ) .tar.gz \
@@ -151,8 +152,9 @@ distribution-tarball: clean ## Generate distribution tarball
151
152
--exclude=.packit.yaml \
152
153
--exclude=sonar-project.properties \
153
154
--exclude=poetry.toml \
155
+ --exclude=dist \
154
156
--transform s/^\. /$(PKGNAME ) -$(VERSION ) / \
155
- . && mv /tmp/$(PKGNAME ) -$(VERSION ) .tar.gz .
157
+ . && mv /tmp/$(PKGNAME ) -$(VERSION ) .tar.gz dist
156
158
157
159
release : # # Interactively bump the version (major, minor, or patch)
158
160
@echo " Current version: $( VERSION) "
You can’t perform that action at this time.
0 commit comments