Skip to content

Commit

Permalink
CI: Upgrade actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-si committed Mar 14, 2024
1 parent 6565730 commit 6e96dd8
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ on: [push]

jobs:
linux:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache .stack-work
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: .stack-work
key: tasklite_stack-work_ubuntu
restore-keys: tasklite_stack-work_ubuntu

- name: Setup Stack
uses: haskell/actions/setup@v1
uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-no-global: true

- name: Cache Stack build files
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: |
~/.stack
Expand All @@ -47,25 +47,25 @@ jobs:
run: /home/runner/.local/bin/tasklite

- name: Upload Linux Release
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
path: /home/runner/.local/bin/tasklite
name: tasklite_linux_x86_64.zip

macos:
runs-on: macos-latest
runs-on: macos-14
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Cache .stack-work
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: .stack-work
key: tasklite_stack-work_macos
restore-keys: tasklite_stack-work_macos

- name: Setup Stack
uses: haskell/actions/setup@v1
uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-no-global: true
Expand All @@ -83,7 +83,7 @@ jobs:
run: /Users/runner/.local/bin/tasklite

- name: Upload MacOS Release
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
path: /Users/runner/.local/bin/tasklite
name: tasklite_macos_x86_64.zip
Expand All @@ -92,13 +92,13 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout Git Repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -118,7 +118,7 @@ jobs:
# windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/checkout@v4

# - name: Install stack
# shell: cmd
Expand All @@ -128,7 +128,7 @@ jobs:
# run: stack install tasklite-core

# - name: Upload Windows Release
# uses: actions/upload-artifact@v1
# uses: actions/upload-artifact@v4
# with:
# path: '%APPDATA%\local\bin\tasklite.exe'
# name: tasklite_windows_x86_64.exe
Expand Down

0 comments on commit 6e96dd8

Please sign in to comment.