;ci: cleanup
This commit is contained in:
parent
204b747664
commit
2029a7d07d
15
.github/workflows/linux.yml
vendored
15
.github/workflows/linux.yml
vendored
@ -1,7 +1,8 @@
|
|||||||
# linux CI tests, run on a periodic schedule, on notable pull request
|
# Thorough linux CI tests: build, test, benchmark, haddock &
|
||||||
# to master, and on notable push to ci-linux. Reasonably thorough
|
# run functional tests, with all supported GHC versions.
|
||||||
# build/test/benchmark/haddock/functest testing, with all GHC
|
#
|
||||||
# versions. Note periodic runs don't use cache.
|
# Runs: periodically, on notable pull request to master, and on
|
||||||
|
# notable push to ci-linux.
|
||||||
|
|
||||||
name: linux / pull request CI
|
name: linux / pull request CI
|
||||||
|
|
||||||
@ -58,8 +59,7 @@ jobs:
|
|||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# declare/restore cached things
|
# things to be cached/restored:
|
||||||
# caching doesn't work for scheduled runs yet https://github.com/actions/cache/issues/63
|
|
||||||
|
|
||||||
- name: Cache stack global package db
|
- name: Cache stack global package db
|
||||||
id: stack-global
|
id: stack-global
|
||||||
@ -81,7 +81,6 @@ jobs:
|
|||||||
${{ runner.os }}-stack-programs-${{ matrix.plan.key }}
|
${{ runner.os }}-stack-programs-${{ matrix.plan.key }}
|
||||||
${{ runner.os }}-stack-programs
|
${{ runner.os }}-stack-programs
|
||||||
|
|
||||||
# stack's local package dbs for the project and each package
|
|
||||||
- name: Cache .stack-work
|
- name: Cache .stack-work
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
@ -149,7 +148,7 @@ jobs:
|
|||||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||||
df -h /
|
df -h /
|
||||||
|
|
||||||
# actions
|
# actions:
|
||||||
|
|
||||||
- name: Install stack
|
- name: Install stack
|
||||||
# curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C $INSTALLDIR '*/stack'
|
# curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C $INSTALLDIR '*/stack'
|
||||||
|
|||||||
11
.github/workflows/mac.yml
vendored
11
.github/workflows/mac.yml
vendored
@ -1,5 +1,6 @@
|
|||||||
# mac CI tests, run on a periodic schedule, and on notable push to
|
# Light Mac CI tests: build and run functional tests with one GHC version.
|
||||||
# ci-mac. Note periodic runs don't use cache.
|
#
|
||||||
|
# Runs: periodically, and on notable push to ci-mac.
|
||||||
|
|
||||||
name: mac CI
|
name: mac CI
|
||||||
|
|
||||||
@ -30,8 +31,7 @@ jobs:
|
|||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# declare/restore cached things
|
# things to be cached/restored:
|
||||||
# caching doesn't work for scheduled runs yet https://github.com/actions/cache/issues/63
|
|
||||||
|
|
||||||
- name: Cache stack global package db
|
- name: Cache stack global package db
|
||||||
id: stack-global
|
id: stack-global
|
||||||
@ -53,7 +53,6 @@ jobs:
|
|||||||
${{ runner.os }}-stack-programs
|
${{ runner.os }}-stack-programs
|
||||||
${{ runner.os }}-local-bin
|
${{ runner.os }}-local-bin
|
||||||
|
|
||||||
# stack's local package dbs for the project and each package
|
|
||||||
- name: Cache .stack-work
|
- name: Cache .stack-work
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
@ -84,7 +83,7 @@ jobs:
|
|||||||
path: hledger-web/.stack-work
|
path: hledger-web/.stack-work
|
||||||
key: ${{ runner.os }}-hledger-web-stack-work
|
key: ${{ runner.os }}-hledger-web-stack-work
|
||||||
|
|
||||||
# actions
|
# actions:
|
||||||
|
|
||||||
- name: Install stack
|
- name: Install stack
|
||||||
# curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C $INSTALLDIR
|
# curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C $INSTALLDIR
|
||||||
|
|||||||
16
.github/workflows/push.yml
vendored
16
.github/workflows/push.yml
vendored
@ -1,4 +1,7 @@
|
|||||||
# quick CI tests, run on notable push to master.
|
# Light CI tests: build and run functional tests with one GHC version,
|
||||||
|
# using less compute power and emitting less carbon.
|
||||||
|
#
|
||||||
|
# Runs: on notable (eg, not just doc files) push to master.
|
||||||
|
|
||||||
name: push CI
|
name: push CI
|
||||||
|
|
||||||
@ -42,16 +45,14 @@ jobs:
|
|||||||
touch "${filename}" -mt "$(date --date="@$TS" "+%Y%m%d%H%M.%S")"
|
touch "${filename}" -mt "$(date --date="@$TS" "+%Y%m%d%H%M.%S")"
|
||||||
done
|
done
|
||||||
|
|
||||||
# cached things
|
# things to be cached/restored:
|
||||||
|
|
||||||
# declare/restore cached things
|
|
||||||
|
|
||||||
- name: Cache stack global package db
|
- name: Cache stack global package db
|
||||||
id: stack-global
|
id: stack-global
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.stack
|
path: ~/.stack
|
||||||
key: ${{ runner.os }}-stack-global-${{ hashFiles('**.yaml') }}
|
key: ${{ runner.os }}-stack-global-${{ hashFiles('**.yaml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-stack-global
|
${{ runner.os }}-stack-global
|
||||||
${{ runner.os }}-stack
|
${{ runner.os }}-stack
|
||||||
@ -61,12 +62,11 @@ jobs:
|
|||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.local/bin
|
path: ~/.local/bin
|
||||||
key: ${{ runner.os }}-stack-programs-${{ hashFiles('**.yaml') }}
|
key: ${{ runner.os }}-stack-programs-${{ hashFiles('**.yaml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-stack-programs
|
${{ runner.os }}-stack-programs
|
||||||
${{ runner.os }}-local-bin
|
${{ runner.os }}-local-bin
|
||||||
|
|
||||||
# stack's local package dbs for the project and each package
|
|
||||||
- name: Cache .stack-work
|
- name: Cache .stack-work
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
@ -102,7 +102,7 @@ jobs:
|
|||||||
key: ${{ runner.os }}-hledger-web-stack-work-${{ hashFiles('hledger-web/package.yaml') }}
|
key: ${{ runner.os }}-hledger-web-stack-work-${{ hashFiles('hledger-web/package.yaml') }}
|
||||||
restore-keys: ${{ runner.os }}-hledger-web-stack-work
|
restore-keys: ${{ runner.os }}-hledger-web-stack-work
|
||||||
|
|
||||||
# actions
|
# actions:
|
||||||
|
|
||||||
- name: Install stack
|
- name: Install stack
|
||||||
# curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C $INSTALLDIR '*/stack'
|
# curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C $INSTALLDIR '*/stack'
|
||||||
|
|||||||
29
.github/workflows/windows.yml
vendored
29
.github/workflows/windows.yml
vendored
@ -1,6 +1,7 @@
|
|||||||
# windows CI tests, run on a periodic schedule, and on notable push to
|
# Light Mac CI tests: build and run functional tests with one GHC version.
|
||||||
# ci-windows. Note periodic runs don't use cache. Using GHC 8.8.2 for
|
# GHC 8.8.2 for now to avoid https://gitlab.haskell.org/ghc/ghc/issues/17926.
|
||||||
# now to avoid https://gitlab.haskell.org/ghc/ghc/issues/17926.
|
#
|
||||||
|
# Runs: periodically, and on notable push to ci-windows.
|
||||||
|
|
||||||
name: windows CI
|
name: windows CI
|
||||||
|
|
||||||
@ -31,8 +32,7 @@ jobs:
|
|||||||
- name: Check out
|
- name: Check out
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
# declare/restore cached things
|
# things to be cached/restored:
|
||||||
# caching doesn't work for scheduled runs yet https://github.com/actions/cache/issues/63
|
|
||||||
|
|
||||||
- name: Cache stack global package db
|
- name: Cache stack global package db
|
||||||
id: stack-global-package-db
|
id: stack-global-package-db
|
||||||
@ -42,11 +42,6 @@ jobs:
|
|||||||
key: ${{ runner.os }}-appdata-roaming-stack-${{ hashFiles('**.yaml') }}
|
key: ${{ runner.os }}-appdata-roaming-stack-${{ hashFiles('**.yaml') }}
|
||||||
restore-keys: ${{ runner.os }}-appdata-roaming-stack
|
restore-keys: ${{ runner.os }}-appdata-roaming-stack
|
||||||
|
|
||||||
# - name: showStuff
|
|
||||||
# shell: bash
|
|
||||||
# run: |
|
|
||||||
# ls -lFRa /c/users/runneradmin/appdata/roaming/stack
|
|
||||||
|
|
||||||
- name: Cache stack programs dir # ghc, ghc-included packages and their haddocks, mingw, msys2
|
- name: Cache stack programs dir # ghc, ghc-included packages and their haddocks, mingw, msys2
|
||||||
id: stack-programs-dir
|
id: stack-programs-dir
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@ -57,12 +52,6 @@ jobs:
|
|||||||
key: ${{ runner.os }}-appdata-local-programs-stack-${{ hashFiles('**.yaml') }}
|
key: ${{ runner.os }}-appdata-local-programs-stack-${{ hashFiles('**.yaml') }}
|
||||||
restore-keys: ${{ runner.os }}-appdata-local-programs-stack
|
restore-keys: ${{ runner.os }}-appdata-local-programs-stack
|
||||||
|
|
||||||
# - name: showStuff
|
|
||||||
# shell: bash
|
|
||||||
# run: |
|
|
||||||
# ls -lFRa /c/users/runneradmin/appdata/local/programs/stack
|
|
||||||
|
|
||||||
# stack's local package dbs for the project and each package
|
|
||||||
- name: Cache .stack-work
|
- name: Cache .stack-work
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
@ -98,7 +87,13 @@ jobs:
|
|||||||
key: ${{ runner.os }}-hledger-web-stack-work-${{ hashFiles('hledger-web/package.yaml') }}
|
key: ${{ runner.os }}-hledger-web-stack-work-${{ hashFiles('hledger-web/package.yaml') }}
|
||||||
restore-keys: ${{ runner.os }}-hledger-web-stack-work
|
restore-keys: ${{ runner.os }}-hledger-web-stack-work
|
||||||
|
|
||||||
# actions
|
# - name: showStuff
|
||||||
|
# shell: bash
|
||||||
|
# run: |
|
||||||
|
# ls -lFRa /c/users/runneradmin/appdata/roaming/stack
|
||||||
|
# ls -lFRa /c/users/runneradmin/appdata/local/programs/stack
|
||||||
|
|
||||||
|
# actions:
|
||||||
|
|
||||||
# - name: Add stack local bin to PATH
|
# - name: Add stack local bin to PATH
|
||||||
# run: echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin"
|
# run: echo "::add-path::C:\Users\runneradmin\AppData\Roaming\stack\local\bin"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user