24 lines
740 B
YAML
24 lines
740 B
YAML
name: Builds
|
|
run-name: ${{ github.actor }} runs Gitea Actions
|
|
on: [push]
|
|
|
|
jobs:
|
|
XTChain:
|
|
strategy:
|
|
matrix:
|
|
target: [linux, windows]
|
|
runs-on: oscw
|
|
container:
|
|
image: codingworkshop/oscw-runner:latest
|
|
steps:
|
|
- name: Clone repository
|
|
uses: actions/checkout@v3
|
|
- name: Build XTChain
|
|
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-*-${{ matrix.target }}.*)
|