-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 651053e Author: pvshvp-oss <[email protected]> Date: Sun Mar 10 15:50:45 2024 -0500 Try creating a matrix for CI commit 63143a6 Author: pvshvp-oss <[email protected]> Date: Sat Mar 9 11:15:57 2024 -0600 CI commit 2adf8fe Author: pvshvp-oss <[email protected]> Date: Fri Mar 8 11:55:33 2024 -0600 Migrate configuration to Figment commit b970757 Author: pvshvp-oss <[email protected]> Date: Fri Mar 8 07:41:03 2024 -0600 Add CI for packaging on Arch Linux commit 7da786e Author: pvshvp-oss <[email protected]> Date: Fri Mar 8 06:45:50 2024 -0600 Update versions of dependencies commit 9aa4895 Author: pvshvp-oss <[email protected]> Date: Fri Mar 8 06:35:40 2024 -0600 Some formatting commit 5f244ce Author: pvshvp-oss <[email protected]> Date: Fri Mar 8 05:58:39 2024 -0600 Building works commit a582a76 Author: pvshvp-oss <[email protected]> Date: Fri Mar 8 05:50:37 2024 -0600 Initial reorg
- Loading branch information
1 parent
4c1df6c
commit 5dfa72f
Showing
55 changed files
with
2,430 additions
and
967 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,2 @@ | ||
*.tar filter=lfs diff=lfs merge=lfs -text | ||
*.tar* filter=lfs diff=lfs merge=lfs -text |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ on: | |
push: | ||
branches: [ main ] | ||
|
||
name: π API Documentation | ||
name: π Document API | ||
|
||
jobs: | ||
build: | ||
|
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
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,88 @@ | ||
name: π¦π Build Package(s) | ||
|
||
on: | ||
workflow_dispatch: # Run when manually triggered | ||
inputs: | ||
branch: | ||
description: 'The branch to act on.' | ||
default: 'main' | ||
required: false | ||
type: string | ||
release_type: | ||
description: 'The release type - Stable or Unstable. The stable release uses the source from the latest git tag whereas the unstable release uses the source from the latest git commit.' | ||
default: 'Stable' | ||
required: false | ||
type: string | ||
workflow_call: # Run when called by another workflow | ||
inputs: | ||
branch: | ||
description: 'The branch to act on.' | ||
default: 'main' | ||
required: false | ||
type: string | ||
release_type: | ||
description: 'The release type - Stable or Unstable. The stable release uses the source from the latest git tag whereas the unstable release uses the source from the latest git commit.' | ||
default: 'Stable' | ||
required: false | ||
type: string | ||
|
||
run-name: ${{ inputs.release_type }} Package Build triggered by ${{ github.actor }} on branch ${{ inputs.branch }} | ||
|
||
jobs: | ||
package_build_job: | ||
name: π¦π Build Package | ||
strategy: | ||
matrix: | ||
platform: | ||
- archlinux | ||
# - debian | ||
# - fedora | ||
# - opensuse | ||
# - windows | ||
# - macos | ||
# - flatpak | ||
architecture: | ||
- x86_64 | ||
# - arm | ||
include: | ||
- os: archlinux | ||
architecture: x86_64 | ||
compilation_target: x86_64-unknown-linux-gnu | ||
docker_image: archlinux:latest | ||
runner: ubuntu-latest | ||
# - os: archlinux | ||
# architecture: arm | ||
# compilation_target: aarch64-unknown-linux-gnu | ||
# docker_image: archlinux:latest | ||
# runner: ubuntu-latest | ||
runs-on: ubuntu-latest | ||
container: | ||
image: archlinux:latest | ||
ports: | ||
- 80 | ||
steps: | ||
- name: π Initialize Arch Linux Docker Container | ||
id: docker_init_step | ||
run: | | ||
# pacman-key --init | ||
pacman -Sy --noconfirm base-devel git # Install essential dependencies | ||
useradd build_user -m # Create the build user | ||
passwd -d build_user # Delete build_user's password | ||
printf 'build_user ALL=(ALL) ALL\n' | tee -a /etc/sudoers # Allow build_user password-less sudo | ||
- name: π Checkout Git Repository | ||
id: repository_checkout_step | ||
uses: actions/checkout@v4 | ||
- name: π Build Package | ||
id: package_build_step | ||
run: | | ||
chown -R build_user packaging | ||
chmod -R +x packaging | ||
sudo -u build_user sh -c "packaging/archlinux/build_package.sh stable --noconfirm" | ||
- name: β¬ Upload Package Artifact | ||
id: upload_package_step | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: Stable Package | ||
path: | | ||
packaging/archlinux/paxy/*.pkg.tar.* | ||
if-no-files-found: error |
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,76 @@ | ||
name: π Pre-Release (Git) | ||
run-name: Pre-Release (Git) triggered by ${{ github.actor }} | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
jobs: | ||
build: | ||
name: π Build for Arch Linux | ||
runs-on: ubuntu-latest | ||
container: | ||
image: rebornos/rebornos:latest | ||
ports: | ||
- 80 | ||
steps: | ||
- name: π Initialize RebornOS Docker Container | ||
id: init_docker_step | ||
run: sh /usr/bin/init-rebornos-docker.sh | ||
- name: π Checkout Git Repository | ||
id: checkout_repository_step | ||
uses: actions/checkout@v4 | ||
- name: π Build Package | ||
id: build_package_step | ||
run: | | ||
chown -R rebornos packaging | ||
chmod -R +x packaging | ||
sudo -u rebornos sh -c "packaging/archlinux/build_package.sh git --noconfirm" | ||
- name: β¬ Upload Package Artifact | ||
id: upload_package_step | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Unstable Package | ||
path: | | ||
packaging/archlinux/paxy-git/*.pkg.tar.* | ||
if-no-files-found: error | ||
release: | ||
needs: build | ||
name: π Pre-Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: π Checkout Git Repository | ||
id: checkout_repository_step | ||
uses: actions/checkout@v4 | ||
- name: π· Determine Tags and Versions | ||
id: set_versions_step | ||
run: | | ||
git fetch --prune --unshallow --tags -f | ||
LATEST_TAG="$(git tag | grep -v -P '^v([0-9]+)\.([0-9]+)\.([0-9]+).*\.' | grep -v -P '^v([0-9]+)\.([0-9]+)\.([0-9]+).*\.' | grep -v -P '^v([0-9]+)\.([0-9]+)\.([0-9]+)_$' | sort --version-sort | tail -n1)" | ||
GIT_VERSION="$(git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")" | ||
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV | ||
echo "GIT_VERSION=$GIT_VERSION" >> $GITHUB_ENV | ||
echo "LATEST_TAG=$LATEST_TAG" | ||
echo "GIT_VERSION=$GIT_VERSION" | ||
- name: β¬ Download Package Artifact | ||
id: download_package_step | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Unstable Package | ||
path: output | ||
- name: π© Generate CheckSum | ||
id: generate_checksum_step | ||
run: | | ||
cd ${{ steps.download_package_step.outputs.download-path }} | ||
find . -type f -exec sh -c 'sha256sum "$0" > "$0.sha256sum"' {} \; | ||
- name: π Create Pre-Release | ||
id: create_release_step | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
draft: false | ||
prerelease: true | ||
fail_on_unmatched_files: true | ||
generate_release_notes: true | ||
append_body: false | ||
tag_name: ${{ env.GIT_VERSION }} | ||
name: ${{ env.GIT_VERSION }} | ||
files: | | ||
${{ steps.download_package_step.outputs.download-path }}/*.pkg.tar.* |
Oops, something went wrong.