kopia lustrzana https://github.com/jameshball/osci-render
83 wiersze
2.2 KiB
YAML
83 wiersze
2.2 KiB
YAML
name: Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
jobs:
|
|
build-linux:
|
|
name: Build Linux
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Fix up git URLs
|
|
run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig
|
|
shell: bash
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
token: ${{ secrets.ACCESS_TOKEN }}
|
|
submodules: true
|
|
- name: "Run script"
|
|
run: |
|
|
export OS="linux"
|
|
source ./ci/setup-env.sh
|
|
source ./ci/test.sh
|
|
source ./ci/build.sh
|
|
shell: bash
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Binaries
|
|
path: bin
|
|
retention-days: 1
|
|
build-macos:
|
|
name: Build macOS
|
|
runs-on: macos-latest
|
|
steps:
|
|
- name: Fix up git URLs
|
|
run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig
|
|
shell: bash
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
token: ${{ secrets.ACCESS_TOKEN }}
|
|
submodules: true
|
|
- uses: maxim-lobanov/setup-xcode@v1
|
|
with:
|
|
xcode-version: latest
|
|
- name: "Run script"
|
|
run: |
|
|
export OS="mac"
|
|
source ./ci/setup-env.sh
|
|
source ./ci/test.sh
|
|
source ./ci/build.sh
|
|
shell: bash
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Binaries
|
|
path: bin
|
|
retention-days: 1
|
|
build-windows:
|
|
name: Build Windows
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Fix up git URLs
|
|
run: echo -e '[url "https://github.com/"]\n insteadOf = "git@github.com:"' >> ~/.gitconfig
|
|
shell: bash
|
|
- uses: actions/checkout@v1
|
|
with:
|
|
token: ${{ secrets.ACCESS_TOKEN }}
|
|
submodules: true
|
|
- name: "Run script"
|
|
run: |
|
|
export OS="win"
|
|
source ./ci/setup-env.sh
|
|
source ./ci/test.sh
|
|
source ./ci/build.sh
|
|
shell: bash
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Binaries
|
|
path: bin
|
|
retention-days: 1
|