From abb1240f85adf3d8613fc430c5d3bd3b5c7aa137 Mon Sep 17 00:00:00 2001 From: Marcello Sylvester Bauer Date: Tue, 15 Oct 2024 22:31:05 +0200 Subject: [PATCH] TESTING: Upload tinygo binary as artifact Signed-off-by: Marcello Sylvester Bauer --- .github/workflows/nix.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml index 32b16206b2..570a39f833 100644 --- a/.github/workflows/nix.yml +++ b/.github/workflows/nix.yml @@ -34,7 +34,25 @@ jobs: key: ${{ steps.cache-llvm-source.outputs.cache-primary-key }} path: | llvm-project/compiler-rt - - uses: cachix/install-nix-action@v22 + - uses: cachix/install-nix-action@v30 + with: + install_url: https://releases.nixos.org/nix/nix-2.24.7/install + - name: Nix version + run: | + nix --version + - name: Build + run: | + nix develop --ignore-environment --keep HOME --command bash -c "go install" + - uses: actions/upload-artifact@v4 + with: + name: upload + path: "/home/runner/go/bin/tinygo" + - name: print go env + run: | + nix develop --ignore-environment --keep HOME --command bash -c "go env" + - name: pritn set + run: | + nix develop --ignore-environment --keep HOME --command bash -c "set" - name: Test run: | - nix develop --ignore-environment --keep HOME --command bash -c "go install && ~/go/bin/tinygo version && ~/go/bin/tinygo build -o test ./testdata/cgo" + nix develop --ignore-environment --keep HOME --command bash -c "~/go/bin/tinygo version && ~/go/bin/tinygo build -o test ./testdata/cgo"