Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ci #9

Merged
merged 8 commits into from
Jan 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @midwan
37 changes: 2 additions & 35 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ If you haven't already, come find us in one of these platforms:

Bug reporting is an important part of making Amiberry better. If you believe you have found a bug, then please follow these steps:

* **Ensure the bug has not already been reported.** Check the existing Github [Issues](https://github.com/midwan/amiberry/issues).
* **Ensure the bug has not already been reported.** Check the existing Github [Issues](https://github.com/BlitterStudio/amiberry/issues).

* If you're unable to find an open issue that addresses the problem, [open a new one](https://github.com/midwan/amiberry/issues/new).
* If you're unable to find an open issue that addresses the problem, [open a new one](https://github.com/BlitterStudio/amiberry/issues/new).
Be sure to include a **title and clear description**, as much relevant information as possible and **steps to recreate** the problem.

* Please use the relevant **bug report template** to create the issue. It was designed to help you fill in what we need, in order to locate
Expand Down Expand Up @@ -51,36 +51,3 @@ on something similar, or perhaps this change could create a problem you haven't
* Please ensure that all your commits are atomic (one feature per commit).



## Financial contributions

We also welcome financial contributions in full transparency on our [open collective](https://opencollective.com/amiberry).
Anyone can file an expense. If the expense makes sense for the development of the community, it will be "merged" in the ledger of our open collective by the core contributors and the person who filed the expense will be reimbursed.


## Credits


### Contributors

Thank you to all the people who have already contributed to Amiberry!
<a href="graphs/contributors"><img src="https://opencollective.com/amiberry/contributors.svg?width=890" /></a>


### Backers

Thank you to all our backers! [[Become a backer](https://opencollective.com/amiberry#backer)]

<a href="https://opencollective.com/amiberry#backers" target="_blank"><img src="https://opencollective.com/amiberry/backers.svg?width=890"></a>
### Sponsors
Thank you to all our sponsors! (please ask your company to also support this open source project by [becoming a sponsor](https://opencollective.com/amiberry#sponsor))
<a href="https://opencollective.com/amiberry/sponsor/0/website" target="_blank"><img src="https://opencollective.com/amiberry/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/amiberry/sponsor/1/website" target="_blank"><img src="https://opencollective.com/amiberry/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/amiberry/sponsor/2/website" target="_blank"><img src="https://opencollective.com/amiberry/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/amiberry/sponsor/3/website" target="_blank"><img src="https://opencollective.com/amiberry/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/amiberry/sponsor/4/website" target="_blank"><img src="https://opencollective.com/amiberry/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/amiberry/sponsor/5/website" target="_blank"><img src="https://opencollective.com/amiberry/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/amiberry/sponsor/6/website" target="_blank"><img src="https://opencollective.com/amiberry/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/amiberry/sponsor/7/website" target="_blank"><img src="https://opencollective.com/amiberry/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/amiberry/sponsor/8/website" target="_blank"><img src="https://opencollective.com/amiberry/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/amiberry/sponsor/9/website" target="_blank"><img src="https://opencollective.com/amiberry/sponsor/9/avatar.svg"></a>
19 changes: 0 additions & 19 deletions .github/workflows/auto-assign.yml

This file was deleted.

269 changes: 136 additions & 133 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,146 +3,145 @@ name: C/C++ CI
on:
workflow_dispatch:
push:
branches:
- master
- preview
tags:
- v*.*.*
- preview-v*.*.*
pull_request:
branches:
- master
- preview

jobs:

build-debian-bullseye-x86_64:
build-debian-bookworm-arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: midwan/amiberry-debian-x86_64:bullseye
options: -v ${{ github.workspace }}:/build
run: |
cmake -B build && cmake --build build -j4
cpack --config build/CPackConfig.cmake

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bullseye-x86_64
path: amiberry-lite_*.deb

build-debian-bookworm-x86_64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: midwan/amiberry-debian-x86_64:bookworm
options: -v ${{ github.workspace }}:/build
run: |
cmake -B build && cmake --build build -j4
cpack --config build/CPackConfig.cmake

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bookworm-x86_64
path: amiberry-lite_*.deb

build-debian-bookworm-aarch64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: midwan/amiberry-debian-aarch64:bookworm
options: -v ${{ github.workspace }}:/build
run: |
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-aarch64-linux-gnu.cmake -B build && cmake --build build -j4
cpack --config build/CPackConfig.cmake

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bookworm-aarch64
path: amiberry-lite_*.deb
- uses: actions/checkout@v4

- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: midwan/amiberry-debian-aarch64:bookworm
options: -v ${{ github.workspace }}:/build
run: |
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-aarch64-linux-gnu.cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr && cmake --build build -j4
cpack -G DEB --config build/CPackConfig.cmake

- name: Upload artifact
if: github.ref_type != 'tag'
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bookworm-arm64
path: amiberry-lite_*.deb

- name: ZIP package for release
if: github.ref_type == 'tag'
run: zip -r amiberry-lite-${{ github.ref_name }}-debian-bookworm-arm64.zip amiberry_*.deb

- name: Upload artifact for release
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bookworm-arm64
path: amiberry-lite-*.zip

build-debian-bookworm-armhf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: midwan/amiberry-debian-armhf:bookworm
options: -v ${{ github.workspace }}:/build
run: |
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-arm-linux-gnueabihf.cmake -B build && cmake --build build -j4
cpack --config build/CPackConfig.cmake

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bookworm-armhf
path: amiberry-lite_*.deb

build-debian-bullseye-aarch64:
- uses: actions/checkout@v4

- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: midwan/amiberry-debian-armhf:bookworm
options: -v ${{ github.workspace }}:/build
run: |
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-arm-linux-gnueabihf.cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr && cmake --build build -j4
cpack -G DEB --config build/CPackConfig.cmake

- name: Upload artifact
if: github.ref_type != 'tag'
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bookworm-armhf
path: amiberry-lite_*.deb

- name: ZIP package for release
if: github.ref_type == 'tag'
run: zip -r amiberry-lite-${{ github.ref_name }}-debian-bookworm-armhf.zip amiberry_*.deb

- name: Upload artifact for release
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bookworm-armhf
path: amiberry-lite-*.zip

build-debian-bullseye-arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: midwan/amiberry-debian-aarch64:bullseye
options: -v ${{ github.workspace }}:/build
run: |
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-aarch64-linux-gnu.cmake -B build && cmake --build build -j4
cpack --config build/CPackConfig.cmake

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bullseye-aarch64
path: amiberry-lite_*.deb
- uses: actions/checkout@v4

- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: midwan/amiberry-debian-aarch64:bullseye
options: -v ${{ github.workspace }}:/build
run: |
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-aarch64-linux-gnu.cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr && cmake --build build -j4
cpack -G DEB --config build/CPackConfig.cmake

- name: Upload artifact
if: github.ref_type != 'tag'
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bullseye-arm64
path: amiberry-lite_*.deb

- name: ZIP package for release
if: github.ref_type == 'tag'
run: zip -r amiberry-lite-${{ github.ref_name }}-debian-bullseye-arm64.zip amiberry_*.deb

- name: Upload artifact for release
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bullseye-arm64
path: amiberry-lite-*.zip

build-debian-bullseye-armhf:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: midwan/amiberry-debian-armhf:bullseye
options: -v ${{ github.workspace }}:/build
run: |
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-arm-linux-gnueabihf.cmake -B build && cmake --build build -j4
cpack --config build/CPackConfig.cmake

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bullseye-armhf
path: amiberry-lite_*.deb
- uses: actions/checkout@v4

- name: Run the build process with Docker
uses: addnab/docker-run-action@v3
with:
image: midwan/amiberry-debian-armhf:bullseye
options: -v ${{ github.workspace }}:/build
run: |
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/Toolchain-arm-linux-gnueabihf.cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=/usr && cmake --build build -j4
cpack -G DEB --config build/CPackConfig.cmake

- name: Upload artifact
if: github.ref_type != 'tag'
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bullseye-armhf
path: amiberry-lite_*.deb

- name: ZIP package for release
if: github.ref_type == 'tag'
run: zip -r amiberry-lite-${{ github.ref_name }}-debian-bullseye-armhf.zip amiberry_*.deb

- name: Upload artifact for release
if: github.ref_type == 'tag'
uses: actions/upload-artifact@v4
with:
name: amiberry-lite-debian-bullseye-armhf
path: amiberry-lite-*.zip

create-release:
needs: [build-debian-bookworm-x86_64, build-debian-bookworm-aarch64, build-debian-bookworm-armhf, build-debian-bullseye-x86_64, build-debian-bullseye-aarch64, build-debian-bullseye-armhf]
needs: [build-debian-bookworm-arm64, build-debian-bookworm-armhf, build-debian-bullseye-arm64, build-debian-bullseye-armhf]
runs-on: ubuntu-latest
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
steps:
- uses: actions/checkout@v4

- name: Create Changelog
if: github.ref_type == 'tag'
id: changelog
Expand All @@ -152,7 +151,13 @@ jobs:
config_file: .github/tag-changelog-config.js

- name: Download Build Artifacts
uses: actions/[email protected]
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true

- name: Display structure of downloaded files
run: ls -R artifacts

- name: Create Release
if: github.ref_type == 'tag'
Expand All @@ -162,15 +167,11 @@ jobs:
omitBodyDuringUpdate: true
body: ${{ steps.changelog.outputs.changes }}
artifacts: |
amiberry-lite-debian-bookworm-x86_64/amiberry-lite_*.deb
amiberry-lite-debian-bookworm-aarch64/amiberry-lite_*.deb
amiberry-lite-debian-bookworm-armhf/amiberry-lite_*.deb
amiberry-lite-debian-bullseye-x86_64/amiberry-lite_*.deb
amiberry-lite-debian-bullseye-aarch64/amiberry-lite_*.deb
amiberry-lite-debian-bullseye-armhf/amiberry-lite_*.deb
artifacts/amiberry-*.*
artifacts/Amiberry-*.*

create-prerelease:
needs: [build-debian-bookworm-x86_64, build-debian-bookworm-aarch64, build-debian-bookworm-armhf, build-debian-bullseye-x86_64, build-debian-bullseye-aarch64, build-debian-bullseye-armhf]
needs: [build-debian-bookworm-arm64, build-debian-bookworm-armhf, build-debian-bullseye-arm64, build-debian-bullseye-armhf]
runs-on: ubuntu-latest
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'preview-v')
steps:
Expand All @@ -185,7 +186,13 @@ jobs:
config_file: .github/tag-changelog-config.js

- name: Download Build Artifacts
uses: actions/[email protected]
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true

- name: Display structure of downloaded files
run: ls -R artifacts

- name: Create PreRelease
if: github.ref_type == 'tag'
Expand All @@ -196,9 +203,5 @@ jobs:
omitBodyDuringUpdate: true
body: ${{ steps.changelog.outputs.changes }}
artifacts: |
amiberry-lite-debian-bookworm-x86_64/amiberry-lite_*.deb
amiberry-lite-debian-bookworm-aarch64/amiberry-lite_*.deb
amiberry-lite-debian-bookworm-armhf/amiberry-lite_*.deb
amiberry-lite-debian-bullseye-x86_64/amiberry-lite_*.deb
amiberry-lite-debian-bullseye-aarch64/amiberry-lite_*.deb
amiberry-lite-debian-bullseye-armhf/amiberry-lite_*.deb
artifacts/amiberry-*.*
artifacts/Amiberry-*.*
Loading
Loading