Restore nuget packages #71
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-linux: | |
name: Build Linux | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Fix up git URLs | |
run: echo -e '[url "https://github.com/"]\n insteadOf = "[email protected]:"' >> ~/.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 = "[email protected]:"' >> ~/.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 = "[email protected]:"' >> ~/.gitconfig | |
shell: bash | |
- uses: actions/checkout@v1 | |
with: | |
token: ${{ secrets.ACCESS_TOKEN }} | |
submodules: true | |
- name: Setup NuGet.exe for use with actions | |
uses: NuGet/[email protected] | |
- name: NuGet Sources | |
run: nuget sources | |
- 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 |