-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
463ecee
commit 01242bf
Showing
3 changed files
with
49 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: hlint-from-scratch | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
jobs: | ||
hlint-from-scratch-ubuntu: | ||
name: ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu, macos, windows] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: stack upgrade | ||
- run: echo "repo_dir=$(mktemp -d)" >> $GITHUB_ENV | ||
shell: bash | ||
- run: ./hlint-from-scratch.sh --init="$repo_dir" | ||
shell: bash | ||
- run: ./hlint-from-scratch.sh --repo-dir="$repo_dir" --ghc-flavor="" --no-cabal --stack-yaml=stack-exact.yaml --resolver=ghc-9.6.4 --no-checkout | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,11 +27,13 @@ fi | |
|
||
pushd "$repo_dir" | ||
|
||
if [ ! -d "ghc" ]; then | ||
git clone https://gitlab.haskell.org/ghc/ghc.git --recursive | ||
pushd "ghc" | ||
git fetch origin --tags | ||
popd | ||
if false; then | ||
if [ ! -d "ghc" ]; then | ||
git clone https://gitlab.haskell.org/ghc/ghc.git --recursive | ||
pushd "ghc" | ||
git fetch origin --tags | ||
popd | ||
fi | ||
else | ||
# update checkout to origin/master HEAD. not used right now. | ||
if false; then | ||
|
@@ -50,20 +52,22 @@ else | |
fi | ||
fi | ||
|
||
if [ ! -d "stack" ]; then | ||
git clone [email protected]:commercialhaskell/stack.git | ||
pushd "stack" | ||
git fetch origin --tags | ||
popd | ||
if false; then | ||
if [ ! -d "stack" ]; then | ||
git clone https://github.com/commercialhaskell/stack.git | ||
pushd "stack" | ||
git fetch origin --tags | ||
popd | ||
fi | ||
else | ||
echo "skip clone stack..." | ||
fi | ||
|
||
if [ ! -d "ghc-lib" ]; then | ||
git clone git@github.com:shayne-fletcher/ghc-lib.git | ||
git clone https://github.com/shayne-fletcher/ghc-lib.git | ||
pushd "ghc-lib" | ||
git fetch origin --tags | ||
git clone --recursive git@gitlab.haskell.org:ghc/ghc.git | ||
git clone https://gitlab.haskell.org/ghc/ghc.git --recursive | ||
pushd "ghc" | ||
git fetch origin --tags | ||
popd | ||
|
@@ -73,15 +77,15 @@ else | |
fi | ||
|
||
if [ ! -d "ghc-lib-parser-ex" ]; then | ||
git clone git@github.com:shayne-fletcher/ghc-lib-parser-ex.git | ||
git clone https://github.com/shayne-fletcher/ghc-lib-parser-ex.git | ||
pushd "ghc-lib-parser-ex" | ||
git fetch origin --tags | ||
popd | ||
else | ||
echo "skip clone ghc-lib-parser-ex..." | ||
fi | ||
if [ ! -d "hlint" ]; then | ||
git clone git@github.com:ndmitchell/hlint.git | ||
git clone https://github.com/ndmitchell/hlint.git | ||
pushd "hlint" | ||
git fetch origin --tags | ||
popd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters