Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/bazel.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@ on:
- master
pull_request: {}

permissions:
contents: read

jobs:
build:
name: Bazel
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'

- uses: actions/cache@v2
- uses: actions/cache@v4
id: caching-stage
name: Cache Bazel artifacts
with:
Expand Down
44 changes: 23 additions & 21 deletions .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
- master
pull_request:

permissions:
contents: read

jobs:
build:
name: ghc ${{ matrix.ghc }}
Expand All @@ -17,39 +20,38 @@ jobs:
ghc: ["8.10", "9.2"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
if: github.event.action == 'opened' || github.event.action == 'synchronize' || github.event.ref == 'refs/heads/master'

- uses: haskell/actions/setup@v1
- uses: haskell-actions/setup@d9b5b3fcf7ca56b8fe585c9b77d3b0ce466affd2 # v2.7.10
name: Setup Haskell
with:
ghc-version: ${{ matrix.ghc }}

- uses: actions/cache@v1
id: cache-cabal
name: Cache Cabal artifacts
with:
path: dist-cache
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-cabal-cache-${{ hashFiles('**/*.cabal') }}
restore-keys: |
${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-cabal-cache-
${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-
${{ runner.os }}-${{ matrix.ghc }}-
${{ runner.os }}-
# - uses: actions/cache@v4
# id: cache-cabal
# name: Cache Cabal artifacts
# with:
# path: dist-cache
# key: ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-cabal-cache-${{ hashFiles('**/*.cabal') }}
# restore-keys: |
# ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-cabal-cache-
# ${{ runner.os }}-${{ matrix.ghc }}-${{ matrix.cabal }}-
# ${{ runner.os }}-${{ matrix.ghc }}-
# ${{ runner.os }}-

- name: Get cabal-cache
run: |
curl -L https://github.com/haskell-works/cabal-cache/releases/download/v1.0.1.8/cabal-cache_x86_64_linux.tar.gz > ./cc.tar.gz
tar -xvf ./cc.tar.gz
# - name: Get cabal-cache
# run: |
# cabal new-install cabal-cache

- name: Configure project
run: |
cabal v2-update
cabal v2-configure --project-file=cabal.project.ci --disable-optimization --enable-tests --write-ghc-environment-files=always -j2
cd semantic-source && cabal v2-configure --project-file=cabal.project.ci --disable-optimization --enable-tests --write-ghc-environment-files=always -j2

- name: Restore from cache
run: ./cabal-cache sync-from-archive --threads=2 --archive-uri=dist-cache || true
# - name: Restore from cache
# run: cabal-cache sync-from-archive --threads=2 --archive-uri=dist-cache || true

- name: Build & test
run: |
Expand All @@ -69,5 +71,5 @@ jobs:
cabal v2-run --project-file=cabal.project.ci semantic-typescript:test
cd semantic-source && cabal v2-run --project-file=cabal.project.ci semantic-source:test

- name: Write out cache
run: ./cabal-cache sync-to-archive --threads=2 --archive-uri=dist-cache
# - name: Write out cache
# run: cabal-cache sync-to-archive --threads=2 --archive-uri=dist-cache
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @github/semantic-code
* @github/blackbird
Loading