experiment with contract build version helper #2484
This file contains hidden or 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: TON - Contracts | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build-check: | |
name: Build & Unit Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@02a151ada4993995686f9ed4f1be7cfbb229e56f # v31 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Run build | |
run: | | |
pushd contracts | |
nix develop .#contracts -c yarn && yarn build | |
- name: Run tests | |
run: | | |
pushd contracts | |
nix develop .#contracts -c yarn test | |
build-nixpkg: | |
name: Build nix package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- name: Install Nix | |
uses: cachix/install-nix-action@02a151ada4993995686f9ed4f1be7cfbb229e56f # v31 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Run build | |
run: nix build -v .#contracts |