Add Dusk contract build #6
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
# Instructions for GitHub to build Dusk's smart contract compilers. | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
name: Dusk Contract Compilers | |
jobs: | |
build_linux: | |
name: Build Linux Compilers | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: sudo apt update && sudo apt install -y ninja-build | |
- name: Run build | |
run: ./x build --config=config/linux.toml | |
- name: Upload build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: linux-build-${{github.ref}} | |
path: build/ | |
build_mac: | |
name: Build MacOS Compilers | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: brew install ninja | |
- name: Run build | |
run: ./x build --config=config/macos.toml | |
- name: Upload build | |
uses: actions/upload-artifact@v3 | |
with: | |
name: macos-build-${{github.ref}} | |
path: build/ |