-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e22a0b
commit bb6683c
Showing
6 changed files
with
133 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Create Meson Dist | ||
description: Runs 'meson dist' as well as uploading the rendered devops files. | ||
runs: | ||
using: composite | ||
steps: | ||
# This is largely to render the template files | ||
- name: Build | ||
shell: sh | ||
run: meson compile -C build | ||
|
||
- name: Create Source Dist | ||
shell: sh | ||
run: meson dist -C build --no-tests --formats gztar --allow-dirty | ||
|
||
- name: Move Source Dist | ||
shell: sh | ||
run: mv build/meson-dist/*.tar.gz . | ||
|
||
- name: Create DevOps Dist | ||
shell: sh | ||
run: tar -czvf devops.tar.gz build/devops/pkg | ||
|
||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: dists | ||
path: | | ||
juptune-*.tar.gz | ||
devops.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Package Test | ||
|
||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
# create_dists: | ||
# name: Create Dist Artifacts | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: ./.github/actions/meson-setup | ||
# - uses: ./.github/actions/meson-dist | ||
|
||
opensuse_rpm: | ||
name: Test OpenSUSE RPM | ||
# needs: create_dists | ||
runs-on: ubuntu-latest | ||
container: opensuse/tumbleweed:latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# - name: Install Node (only needed when using act) | ||
# run: zypper -n install -y nodejs | ||
|
||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: dists | ||
path: dists | ||
|
||
- name: Unzip DevOps Dist | ||
run: tar -xzvf dists/devops.tar.gz | ||
|
||
- name: Refresh Package Metadata | ||
run: zypper refresh | ||
|
||
- name: Install Build Dependencies | ||
run: | | ||
zypper -n in --no-recommends --auto-agree-with-licenses \ | ||
meson \ | ||
ldc \ | ||
ldc-phobos-devel \ | ||
ldc-runtime-devel \ | ||
libsodium-devel \ | ||
pkg-config \ | ||
rpm-build \ | ||
rpmlint | ||
- name: Get rpm topdir | ||
run: echo "RPM_TOPDIR=$(rpm --eval '%{_topdir}')" >> $GITHUB_ENV | ||
|
||
- name: Setup RPM Build Environment | ||
run: mkdir -p ${RPM_TOPDIR}/SOURCES | ||
|
||
- name: Copy Source Dist | ||
run: cp dists/juptune-*.tar.gz ${RPM_TOPDIR}/SOURCES | ||
|
||
- name: Perform build | ||
run: rpmbuild -ba --nosignature --undefine _enable_debug_packages build/devops/pkg/opensuse-rpm/juptune.spec | ||
|
||
- name: Lint RPMs | ||
run: rpmlint -i ${RPM_TOPDIR}/**/*.rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test | ||
name: Unittests | ||
|
||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters