diff --git a/.github/workflows/native-build.yml b/.github/workflows/native-build.yml index 7b5ba843..e6e035c6 100644 --- a/.github/workflows/native-build.yml +++ b/.github/workflows/native-build.yml @@ -8,38 +8,19 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - # Cache - - id: stack_cache_key - run: echo ::set-output name=key::$(md5sum stack.yaml.lock | awk '{print $1}') - - - uses: actions/cache@v2 - with: - path: ~/.stack - key: ${{ matrix.os }}-${{ steps.stack_cache_key.outputs.key }} - - - id: cache_key - run: echo ::set-output name=key::$(git branch) - - - uses: actions/cache@v2 - with: - path: | - ./.stack-work/dist - **/node_modules - key: ${{ matrix.os }}-${{ steps.cache_key.outputs.key }} - - # Nix - - uses: cachix/install-nix-action@v10 + # Nix & Haskell + - uses: cachix/install-nix-action@v12 with: nix_path: nixpkgs=channel:nixos-unstable - - uses: mstksg/get-package@v1 + - uses: actions/setup-haskell@v1.1 with: - apt-get: libgmp-dev - - uses: mstksg/setup-stack@v1 + enable-stack: true + stack-version: latest # Tasks - run: nix-shell --run "just install-deps" @@ -54,7 +35,7 @@ jobs: create-release: needs: build - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 outputs: RELEASE_UPLOAD_ID: ${{ steps.create_release.outputs.id }}