Build all targets
This commit is contained in:
parent
e23ad59586
commit
8c31eb6767
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -4,6 +4,9 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
XTChain:
|
XTChain:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
target: [linux, windows]
|
||||||
runs-on: oscw
|
runs-on: oscw
|
||||||
container:
|
container:
|
||||||
image: codingworkshop/oscw-runner:latest
|
image: codingworkshop/oscw-runner:latest
|
||||||
@ -11,10 +14,10 @@ jobs:
|
|||||||
- name: Clone repository
|
- name: Clone repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Build XTChain
|
- name: Build XTChain
|
||||||
run: CORES=10 ./build.sh
|
run: ./build.sh --jobs=10 --target=${{ matrix.target }}
|
||||||
- name: Publish binaries
|
- name: Publish binaries
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
env:
|
env:
|
||||||
OSCW_GITHUB_USERNAME: ${{ secrets.OSCW_GITHUB_USERNAME }}
|
OSCW_GITHUB_USERNAME: ${{ secrets.OSCW_GITHUB_USERNAME }}
|
||||||
OSCW_GITHUB_PASSWORD: ${{ secrets.OSCW_GITHUB_PASSWORD }}
|
OSCW_GITHUB_PASSWORD: ${{ secrets.OSCW_GITHUB_PASSWORD }}
|
||||||
run: github_publish $OSCW_GITHUB_USERNAME $OSCW_GITHUB_PASSWORD $(ls xtchain-*-linux.tar.zst)
|
run: github_publish $OSCW_GITHUB_USERNAME $OSCW_GITHUB_PASSWORD $(ls xtchain-*-${{ matrix.target }}.*)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user