Skip to content

.github/workflows/hiddenalpha-release.yml #4

.github/workflows/hiddenalpha-release.yml

.github/workflows/hiddenalpha-release.yml #4

name: Artifacts Patched By hiddenalpha
on:
push:
#branches:
# - "wip-TryAddMyCustomReleaseBuild-20241123"
tags:
- 'v[0-9]*.[0-9]*.[0-9]*'
jobs:
# local snk = io.stdout
# local build = function(target, arch, host, setup)
# snk:write(""
# .. " ".. target .."-".. arch ..":\n"
# .. " runs-on: ".. host .."-latest\n"
# .. " steps:\n"
# .. " - name: Checkout repository\n"
# .. " uses: actions/checkout@v3\n"
# .. " - name: Set up build environment\n"
# .. " run: ".. setup .."\n"
# .. " - name: Build the project\n"
# .. " run: |\n"
# .. " mvn -P ARCH clean verify\n"
# .. " ls -Ahl target\n"
# ..[[ echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)]].."\n"
# ..[[ echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV]].."\n"
# .. " - name: Upload build artifact\n"
# .. " uses: actions/upload-artifact@v4\n"
# .. " with:\n"
# .. " name: ${{ env.artifact_name }}\n"
# .. " path: target/${{ env.artifact_name }}\n"
# )
# end
# local buildLinux = function( arch )
# build("linux", arch, "ubuntu", "true"
# .." && sudo apt-get update"
# .." && sudo apt-get install --no-install-recommends -y"
# .. " maven cmake make g++" )
# end
# local buildWindoof = function( arch )
# build("windows", arch, "windows", "choco install visualstudio2019community")
# end
# local buildOsx = function( arch )
# build("macos", arch, "maocs", "brew install clang socat")
# end
# buildLinux("32")
# buildLinux("64")
# buildLinux("arm")
# buildLinux("arm64")
# buildLinux("ppc")
# buildLinux("riscv32")
# buildWindoof("32")
# buildWindoof("64")
# buildWindoof("arm64")
# buildOsx("64")
# buildOsx("arm64")
linux-32:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up build environment
run: true && sudo apt-get update && sudo apt-get install --no-install-recommends -y maven cmake make g++
- name: Build the project
run: |
mvn -P ARCH clean verify
ls -Ahl target
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: target/${{ env.artifact_name }}
linux-64:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up build environment
run: true && sudo apt-get update && sudo apt-get install --no-install-recommends -y maven cmake make g++
- name: Build the project
run: |
mvn -P ARCH clean verify
ls -Ahl target
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: target/${{ env.artifact_name }}
linux-arm:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up build environment
run: true && sudo apt-get update && sudo apt-get install --no-install-recommends -y maven cmake make g++
- name: Build the project
run: |
mvn -P ARCH clean verify
ls -Ahl target
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: target/${{ env.artifact_name }}
linux-arm64:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up build environment
run: true && sudo apt-get update && sudo apt-get install --no-install-recommends -y maven cmake make g++
- name: Build the project
run: |
mvn -P ARCH clean verify
ls -Ahl target
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: target/${{ env.artifact_name }}
linux-ppc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up build environment
run: true && sudo apt-get update && sudo apt-get install --no-install-recommends -y maven cmake make g++
- name: Build the project
run: |
mvn -P ARCH clean verify
ls -Ahl target
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: target/${{ env.artifact_name }}
linux-riscv32:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up build environment
run: true && sudo apt-get update && sudo apt-get install --no-install-recommends -y maven cmake make g++
- name: Build the project
run: |
mvn -P ARCH clean verify
ls -Ahl target
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: target/${{ env.artifact_name }}
windows-32:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up build environment
run: choco install visualstudio2019community
- name: Build the project
run: |
mvn -P ARCH clean verify
ls -Ahl target
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: target/${{ env.artifact_name }}
windows-64:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up build environment
run: choco install visualstudio2019community
- name: Build the project
run: |
mvn -P ARCH clean verify
ls -Ahl target
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: target/${{ env.artifact_name }}
windows-arm64:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up build environment
run: choco install visualstudio2019community
- name: Build the project
run: |
mvn -P ARCH clean verify
ls -Ahl target
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: target/${{ env.artifact_name }}
macos-64:
runs-on: maocs-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up build environment
run: brew install clang socat
- name: Build the project
run: |
mvn -P ARCH clean verify
ls -Ahl target
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: target/${{ env.artifact_name }}
macos-arm64:
runs-on: maocs-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up build environment
run: brew install clang socat
- name: Build the project
run: |
mvn -P ARCH clean verify
ls -Ahl target
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)
echo "artifact_name=$(basename target/jssc-*-TARGET-ARCH*.jar)" >> $GITHUB_ENV
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact_name }}
path: target/${{ env.artifact_name }}