Skip to content

Commit

Permalink
TESTING: Upload tinygo binary as artifact
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Sylvester Bauer <[email protected]>
  • Loading branch information
sylv-io committed Oct 16, 2024
1 parent 9a0dde0 commit abb1240
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit abb1240

Please sign in to comment.