Do not try to run yarn, add :tsc_test target #13
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
on: | |
push: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: install buck | |
run: | | |
curl -Lo $HOME/buck.zst https://github.com/facebook/buck2/releases/download/2024-08-15/buck2-x86_64-unknown-linux-musl.zst | |
zstd --decompress $HOME/buck.zst | |
chmod +x $HOME/buck | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- run: df -h | |
- name: start nativelink | |
uses: JarvusInnovations/background-action@v1 | |
with: | |
run: | | |
IMAGE=ghcr.io/tracemachina/nativelink:v0.5.3 | |
docker pull $IMAGE | |
exe=$( docker inspect --type=image --format='{{json .Config.Entrypoint}}' $IMAGE | jq -r '.[0]' ) | |
docker create --name nl $IMAGE | |
docker cp nl:$exe $HOME/nativelink | |
docker rm nl | |
$HOME/nativelink --version | |
$HOME/nativelink nativelink_config.json & | |
wait-for: 30s | |
wait-on: | | |
tcp:127.0.0.1:50051 | |
- run: docker ps -a | |
- name: Build tsc_test | |
run: $HOME/buck build -v 2,stderr --prefer-remote :tsc_test | |
- name: Build tsc_test | |
run: $HOME/buck build -v 2,stderr --prefer-remote :tsc_generated |