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:
|
||||
XTChain:
|
||||
strategy:
|
||||
matrix:
|
||||
target: [linux, windows]
|
||||
runs-on: oscw
|
||||
container:
|
||||
image: codingworkshop/oscw-runner:latest
|
||||
@ -11,10 +14,10 @@ jobs:
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Build XTChain
|
||||
run: CORES=10 ./build.sh
|
||||
run: ./build.sh --jobs=10 --target=${{ matrix.target }}
|
||||
- name: Publish binaries
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
env:
|
||||
OSCW_GITHUB_USERNAME: ${{ secrets.OSCW_GITHUB_USERNAME }}
|
||||
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