Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test:ci/cd
Browse files Browse the repository at this point in the history
krypton-byte committed Jan 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f2c602f commit 5c60f36
Showing 3 changed files with 105 additions and 78 deletions.
18 changes: 18 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
changelog:
exclude:
labels:
- ignore-for-release
authors:
- octocat
categories:
- title: Breaking Changes 🛠
labels:
- Semver-Major
- breaking-change
- title: Exciting New Features 🎉
labels:
- Semver-Minor
- enhancement
- title: Other Changes
labels:
- "*"
163 changes: 85 additions & 78 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: ci

on:
push:
branches:
- "ci/cd"
pull_request:
branches:
- "ci/cd"
workflow_dispatch:
inputs:
version:
description: set release version
required: true

jobs:
build:
@@ -24,81 +23,89 @@ jobs:
curl -sSL https://install.python-poetry.org | python - -y
- name: Installing Dependencies
run: |
sudo apt install gcc-aarch64-linux-gnu gcc-s390x-linux-gnu gcc-riscv64-linux-gnu wget -y
sudo apt install wget -y # gcc-aarch64-linux-gnu gcc-s390x-linux-gnu gcc-riscv64-linux-gnu
poetry install
poetry version ${{ github.event.inputs.version }}
- name: LINUX
run: |
#AMD64/X86_64
export CGO_ENABLED=1
poetry run build goneonize
#ARM64/AARCH64
export GOOS=linux
export GOARCH=arm64
export CC=$(which aarch64-linux-gnu-gcc)
export CXX=$(which aarch64-linux-gnu-cpp)
poetry run build goneonize
#RISCV64
export GOOS=linux
export GOARCH=riscv64
export CC=$(which riscv64-linux-gnu-gcc)
export CXX=$(which riscv64-linux-gnu-cpp)
poetry run build goneonize
#S390X
export GOOS=linux
export GOARCH=s390x
export CC=$(which s390x-linux-gnu-gcc)
export CXX=$(which s390x-linux-gnu-cpp)
poetry run build goneonize
- name: WINDOWS SHARED LIBRARY USING ZIG
run: |
wget https://ziglang.org/builds/zig-linux-x86_64-0.12.0-dev.2150+63de8a598.tar.xz
xz -d zig-linux-x86_64-0.12.0-dev.2150+63de8a598.tar.xz
tar -xf zig-linux-x86_64-0.12.0-dev.2150+63de8a598.tar
export PATH=$(pwd)/zig-linux-x86_64-0.12.0-dev.2150+63de8a598:$PATH
export CGO_ENABLED=1
#AMD64
export GOOS=windows
export GOARCH=amd64
export CC="zig cc -target x86_64-windows"
poetry run build goneonize
#ARM64
export GOOS=windows
export GOARCH=arm64
export CC="zig cc -target aarch64-windows"
poetry run build goneonize
#X86 / 386
export GOOS=windows
export GOARCH=386
export CC="zig cc -target x86-windows"
poetry run build goneonize
- name: ANDROID
run: |
export CGO_ENABLED=1
wget https://dl.google.com/android/repository/android-ndk-r26b-linux.zip > /dev/null
unzip android-ndk-r26b-linux.zip > /dev/null
export ANDROID_NDK_HOME=$(pwd)/android-ndk-r26b
export PATH=$PATH:$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin
#ARM64/AARCH64
export CC=$(which aarch64-linux-android28-clang)
export CXX=$(which aarch64-linux-android28-clang++)
export GOOS=android
export GOARCH=arm64
poetry run build goneonize
#ARM
export CC=$(which armv7a-linux-androideabi28-clang)
export CXX=$(which armv7a-linux-androideabi28-clang++)
export GOOS=android
export GOARCH=arm
poetry run build goneonize
#AMD64/x86_64
export CC=$(which x86_64-linux-android28-clang)
export CXX=$(which x86_64-linux-android28-clang++)
export GOOS=android
export GOARCH=amd64
poetry run build goneonize
#386/686
export CC=$(which i686-linux-android28-clang)
export CXX=$(which i686-linux-android28-clang++)
export GOOS=android
export GOARCH=386
poetry run build goneonize
- name: Set Tag and Version
run:
- uses: softprops/action-gh-release@v1
with:
draft: true
files: ./neonize/*.so
generate_release_notes: true
# #ARM64/AARCH64
# export GOOS=linux
# export GOARCH=arm64
# export CC=$(which aarch64-linux-gnu-gcc)
# export CXX=$(which aarch64-linux-gnu-cpp)
# poetry run build goneonize
# #RISCV64
# export GOOS=linux
# export GOARCH=riscv64
# export CC=$(which riscv64-linux-gnu-gcc)
# export CXX=$(which riscv64-linux-gnu-cpp)
# poetry run build goneonize
# #S390X
# export GOOS=linux
# export GOARCH=s390x
# export CC=$(which s390x-linux-gnu-gcc)
# export CXX=$(which s390x-linux-gnu-cpp)
# poetry run build goneonize
# - name: WINDOWS SHARED LIBRARY USING ZIG
# run: |
# wget https://ziglang.org/builds/zig-linux-x86_64-0.12.0-dev.2150+63de8a598.tar.xz
# xz -d zig-linux-x86_64-0.12.0-dev.2150+63de8a598.tar.xz
# tar -xf zig-linux-x86_64-0.12.0-dev.2150+63de8a598.tar
# export PATH=$(pwd)/zig-linux-x86_64-0.12.0-dev.2150+63de8a598:$PATH
# export CGO_ENABLED=1
# #AMD64
# export GOOS=windows
# export GOARCH=amd64
# export CC="zig cc -target x86_64-windows"
# poetry run build goneonize
# #ARM64
# export GOOS=windows
# export GOARCH=arm64
# export CC="zig cc -target aarch64-windows"
# poetry run build goneonize
# #X86 / 386
# export GOOS=windows
# export GOARCH=386
# export CC="zig cc -target x86-windows"
# poetry run build goneonize
# - name: ANDROID
# run: |
# export CGO_ENABLED=1
# wget https://dl.google.com/android/repository/android-ndk-r26b-linux.zip > /dev/null
# unzip android-ndk-r26b-linux.zip > /dev/null
# export ANDROID_NDK_HOME=$(pwd)/android-ndk-r26b
# export PATH=$PATH:$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin
# #ARM64/AARCH64
# export CC=$(which aarch64-linux-android28-clang)
# export CXX=$(which aarch64-linux-android28-clang++)
# export GOOS=android
# export GOARCH=arm64
# poetry run build goneonize
# #ARM
# export CC=$(which armv7a-linux-androideabi28-clang)
# export CXX=$(which armv7a-linux-androideabi28-clang++)
# export GOOS=android
# export GOARCH=arm
# poetry run build goneonize
# #AMD64/x86_64
# export CC=$(which x86_64-linux-android28-clang)
# export CXX=$(which x86_64-linux-android28-clang++)
# export GOOS=android
# export GOARCH=amd64
# poetry run build goneonize
# #386/686
# export CC=$(which i686-linux-android28-clang)
# export CXX=$(which i686-linux-android28-clang++)
# export GOOS=android
# export GOARCH=386
# poetry run build goneonize
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -53,6 +53,8 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"




[tool.poetry.scripts]
docsbuild = "docs.generate:build"
build = "neonize.goneonize.build:build"

0 comments on commit 5c60f36

Please sign in to comment.