2023-12-30 11:40:23 +00:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-03-03 20:35:02 +00:00
|
|
|
- main
|
2024-06-02 14:16:31 +00:00
|
|
|
workflow_dispatch:
|
2023-12-30 11:40:23 +00:00
|
|
|
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"
|
2024-02-10 12:14:43 +00:00
|
|
|
source ./ci/setup-env.sh
|
2024-02-10 12:24:09 +00:00
|
|
|
source ./ci/test.sh
|
|
|
|
source ./ci/build.sh
|
2023-12-30 11:40:23 +00:00
|
|
|
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
|
2024-04-28 21:23:37 +00:00
|
|
|
- uses: maxim-lobanov/setup-xcode@v1
|
|
|
|
with:
|
|
|
|
xcode-version: latest
|
2023-12-30 11:40:23 +00:00
|
|
|
- name: "Run script"
|
|
|
|
run: |
|
|
|
|
export OS="mac"
|
2024-02-10 12:14:43 +00:00
|
|
|
source ./ci/setup-env.sh
|
2024-02-10 12:24:09 +00:00
|
|
|
source ./ci/test.sh
|
|
|
|
source ./ci/build.sh
|
2023-12-30 11:40:23 +00:00
|
|
|
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"
|
2024-02-10 12:14:43 +00:00
|
|
|
source ./ci/setup-env.sh
|
2024-02-10 12:24:09 +00:00
|
|
|
source ./ci/test.sh
|
|
|
|
source ./ci/build.sh
|
2023-12-30 11:40:23 +00:00
|
|
|
shell: bash
|
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: Binaries
|
|
|
|
path: bin
|
|
|
|
retention-days: 1
|