diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 2a757fa..a220683 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -4,11 +4,13 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Setup - uses: actions/setup-go@v3 + - uses: actions/checkout@v3 + - uses: DeterminateSystems/nix-installer-action@cd46bde16ab981b0a7b2dce0574509104543276e with: - go-version: '^1.16' - - name: Checkout - uses: actions/checkout@v3 + diagnostic-endpoint: + - uses: DeterminateSystems/magic-nix-cache-action@8a218f9e264e9c3803c9a1ee1c30d8e4ab55be63 + with: + diagnostic-endpoint: - name: Build - run: make + run: | + nix build --print-build-logs diff --git a/.gitignore b/.gitignore index fde4568..8e89a61 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ -build/ nodes.json result diff --git a/Makefile b/Makefile deleted file mode 100644 index 3192e92..0000000 --- a/Makefile +++ /dev/null @@ -1,8 +0,0 @@ -all: prep - go build -o build/bin/toxstatus github.com/Tox/ToxStatus/cmd/toxstatus - -prep: - mkdir -p build/bin - -clean: - rm -rf build