mirror of
https://github.com/RubyMetric/chsrc.git
synced 2024-11-25 09:41:46 +08:00
Separate build files
This commit is contained in:
parent
3b7d6d3c4f
commit
fe31fdb6d3
36
.github/workflows/linux-aarch64.yml
vendored
Normal file
36
.github/workflows/linux-aarch64.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
name: Linux AArch64 Build
|
||||
on:
|
||||
push:
|
||||
branches: [ "gh-pipeline" ]
|
||||
pull_request:
|
||||
branches: [ "gh-pipeline" ]
|
||||
|
||||
jobs:
|
||||
aarch64-linux-build-and-upload:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Build aarch64
|
||||
uses: uraimo/run-on-arch-action@v2
|
||||
with:
|
||||
arch: aarch64
|
||||
distro: ubuntu_latest
|
||||
|
||||
dockerRunArgs: |
|
||||
--volume "${PWD}/artifacts:/artifacts"
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install build-essential -y -q
|
||||
apt-get install git -y -q
|
||||
pwd ; ls -al
|
||||
git clone https://github.com/RubyMetric/chsrc -b gh-pipeline -q
|
||||
cd chsrc
|
||||
make CI CI_BUILD_NAME=chsrc-aarch64-linux
|
||||
cp ./chsrc-aarch64-linux /artifacts
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: preview
|
||||
files: |
|
||||
./artifacts/chsrc-aarch64-linux
|
||||
token: ${{ secrets.CHSRC_UPLOAD }}
|
37
.github/workflows/linux-armv7.yml
vendored
Normal file
37
.github/workflows/linux-armv7.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Linux ARMv7 Build
|
||||
on:
|
||||
push:
|
||||
branches: [ "gh-pipeline" ]
|
||||
pull_request:
|
||||
branches: [ "gh-pipeline" ]
|
||||
|
||||
jobs:
|
||||
armv7-linu-build-and-upload:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Build ARMv7
|
||||
uses: uraimo/run-on-arch-action@v2
|
||||
with:
|
||||
arch: armv7
|
||||
distro: ubuntu_latest
|
||||
|
||||
dockerRunArgs: |
|
||||
--volume "${PWD}/artifacts:/artifacts"
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install build-essential -y -q
|
||||
apt-get install git -y -q
|
||||
pwd ; ls -al
|
||||
git clone https://github.com/RubyMetric/chsrc -b gh-pipeline -q
|
||||
cd chsrc
|
||||
make CI CI_BUILD_NAME=chsrc-armv7-linux
|
||||
cp ./chsrc-armv7-linux /artifacts
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: preview
|
||||
files: |
|
||||
./artifacts/chsrc-armv7-linux
|
||||
token: ${{ secrets.CHSRC_UPLOAD }}
|
||||
|
36
.github/workflows/linux-riscv64.yml
vendored
Normal file
36
.github/workflows/linux-riscv64.yml
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
name: Linux riscv64 Build
|
||||
on:
|
||||
push:
|
||||
branches: [ "gh-pipeline" ]
|
||||
pull_request:
|
||||
branches: [ "gh-pipeline" ]
|
||||
|
||||
jobs:
|
||||
riscv64-linux-build-and-upload:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Build riscv64
|
||||
uses: uraimo/run-on-arch-action@v2
|
||||
with:
|
||||
arch: riscv64
|
||||
distro: ubuntu_latest
|
||||
|
||||
dockerRunArgs: |
|
||||
--volume "${PWD}/artifacts:/artifacts"
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install build-essential -y -q
|
||||
apt-get install git -y -q
|
||||
pwd ; ls -al
|
||||
git clone https://github.com/RubyMetric/chsrc -b gh-pipeline -q
|
||||
cd chsrc
|
||||
make CI CI_BUILD_NAME=chsrc-riscv64-linux
|
||||
cp ./chsrc-riscv64-linux /artifacts
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: preview
|
||||
files: |
|
||||
./artifacts/chsrc-riscv64-linux
|
||||
token: ${{ secrets.CHSRC_UPLOAD }}
|
30
.github/workflows/linux-x64.yml
vendored
Normal file
30
.github/workflows/linux-x64.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: Linux x64 Build
|
||||
on:
|
||||
push:
|
||||
branches: [ "gh-pipeline" ]
|
||||
pull_request:
|
||||
branches: [ "gh-pipeline" ]
|
||||
|
||||
jobs:
|
||||
x64-linux-build-and-upload:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Compile chsrc x64
|
||||
run: |
|
||||
make CI CI_BUILD_NAME=chsrc-x64-linux
|
||||
|
||||
- name: List files
|
||||
run: ls *-linux
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
tag_name: preview
|
||||
files: |
|
||||
chsrc-x64-linux
|
||||
token: ${{ secrets.CHSRC_UPLOAD }}
|
95
.github/workflows/linux.yml
vendored
95
.github/workflows/linux.yml
vendored
|
@ -1,95 +0,0 @@
|
|||
name: Linux Build
|
||||
on:
|
||||
push:
|
||||
branches: [ "gh-pipeline" ]
|
||||
pull_request:
|
||||
branches: [ "gh-pipeline" ]
|
||||
|
||||
jobs:
|
||||
x64-build-and-upload:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
- name: Compile chsrc x64
|
||||
run: |
|
||||
make CI CI_BUILD_NAME=chsrc-x64-linux
|
||||
- name: List files
|
||||
run: ls *-linux
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
# if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
tag_name: preview
|
||||
files: |
|
||||
chsrc-x64-linux
|
||||
token: ${{ secrets.CHSRC_UPLOAD }}
|
||||
|
||||
|
||||
multi-build-and-upload:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Build ARMv7
|
||||
uses: uraimo/run-on-arch-action@v2
|
||||
with:
|
||||
arch: armv7
|
||||
distro: ubuntu_latest
|
||||
|
||||
dockerRunArgs: |
|
||||
--volume "${PWD}/artifacts:/artifacts"
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install build-essential -y -q
|
||||
apt-get install git -y -q
|
||||
pwd ; ls -al
|
||||
git clone https://github.com/RubyMetric/chsrc -b gh-pipeline -q
|
||||
cd chsrc
|
||||
make CI CI_BUILD_NAME=chsrc-armv7-linux
|
||||
cp ./chsrc-armv7-linux /artifacts
|
||||
|
||||
- name: Build aarch64
|
||||
uses: uraimo/run-on-arch-action@v2
|
||||
with:
|
||||
arch: aarch64
|
||||
distro: ubuntu_latest
|
||||
|
||||
dockerRunArgs: |
|
||||
--volume "${PWD}/artifacts:/artifacts"
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install build-essential -y -q
|
||||
apt-get install git -y -q
|
||||
pwd ; ls -al
|
||||
git clone https://github.com/RubyMetric/chsrc -b gh-pipeline -q
|
||||
cd chsrc
|
||||
make CI CI_BUILD_NAME=chsrc-aarch64-linux
|
||||
cp ./chsrc-aarch64-linux /artifacts
|
||||
|
||||
- name: Build riscv64
|
||||
uses: uraimo/run-on-arch-action@v2
|
||||
with:
|
||||
arch: riscv64
|
||||
distro: ubuntu_latest
|
||||
|
||||
dockerRunArgs: |
|
||||
--volume "${PWD}/artifacts:/artifacts"
|
||||
run: |
|
||||
apt-get update -qq
|
||||
apt-get install build-essential -y -q
|
||||
apt-get install git -y -q
|
||||
pwd ; ls -al
|
||||
git clone https://github.com/RubyMetric/chsrc -b gh-pipeline -q
|
||||
cd chsrc
|
||||
make CI CI_BUILD_NAME=chsrc-riscv64-linux
|
||||
cp ./chsrc-riscv64-linux /artifacts
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
tag_name: preview
|
||||
files: |
|
||||
./artifacts/chsrc-armv7-linux
|
||||
./artifacts/chsrc-aarch64-linux
|
||||
./artifacts/chsrc-riscv64-linux
|
||||
token: ${{ secrets.CHSRC_UPLOAD }}
|
||||
|
Loading…
Reference in New Issue
Block a user