Skip to content

Commit

Permalink
Use manual checkout on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Mar 3, 2020
1 parent 2dde4d3 commit bf0f29a
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 10 deletions.
72 changes: 63 additions & 9 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ jobs:
chmod a+x $HOME/.cabal/bin/cabal-plan
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
# https://github.com/actions/checkout/issues/170
# - uses: actions/checkout@v2
- name: Checkout
run: |
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
git fetch origin $GITHUB_REF:$GITHUB_REF
git checkout $GITHUB_REF
- name: Validate print-config
run: sh validate.sh -j 2 -w ghc-8.8.3 -v --solver-benchmarks -s print-config
- name: Validate print-tool-versions
Expand Down Expand Up @@ -76,7 +82,13 @@ jobs:
chmod a+x $HOME/.cabal/bin/cabal-plan
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
# https://github.com/actions/checkout/issues/170
# - uses: actions/checkout@v2
- name: Checkout
run: |
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
git fetch origin $GITHUB_REF:$GITHUB_REF
git checkout $GITHUB_REF
- name: Validate print-config
run: sh validate.sh -j 2 -w ghc-8.6.5 -v -s print-config
- name: Validate print-tool-versions
Expand Down Expand Up @@ -114,7 +126,13 @@ jobs:
chmod a+x $HOME/.cabal/bin/cabal-plan
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
# https://github.com/actions/checkout/issues/170
# - uses: actions/checkout@v2
- name: Checkout
run: |
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
git fetch origin $GITHUB_REF:$GITHUB_REF
git checkout $GITHUB_REF
- name: Validate print-config
run: sh validate.sh -j 2 -w ghc-8.4.4 -v -s print-config
- name: Validate print-tool-versions
Expand Down Expand Up @@ -152,7 +170,13 @@ jobs:
chmod a+x $HOME/.cabal/bin/cabal-plan
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
# https://github.com/actions/checkout/issues/170
# - uses: actions/checkout@v2
- name: Checkout
run: |
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
git fetch origin $GITHUB_REF:$GITHUB_REF
git checkout $GITHUB_REF
- name: Validate print-config
run: sh validate.sh -j 2 -w ghc-8.2.2 -v -s print-config
- name: Validate print-tool-versions
Expand Down Expand Up @@ -190,7 +214,13 @@ jobs:
chmod a+x $HOME/.cabal/bin/cabal-plan
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
# https://github.com/actions/checkout/issues/170
# - uses: actions/checkout@v2
- name: Checkout
run: |
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
git fetch origin $GITHUB_REF:$GITHUB_REF
git checkout $GITHUB_REF
- name: Validate print-config
run: sh validate.sh -j 2 -w ghc-8.0.2 -v -s print-config
- name: Validate print-tool-versions
Expand Down Expand Up @@ -228,7 +258,13 @@ jobs:
chmod a+x $HOME/.cabal/bin/cabal-plan
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
# https://github.com/actions/checkout/issues/170
# - uses: actions/checkout@v2
- name: Checkout
run: |
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
git fetch origin $GITHUB_REF:$GITHUB_REF
git checkout $GITHUB_REF
- name: Validate print-config
run: sh validate.sh -j 2 -w ghc-7.10.3 -v -s print-config
- name: Validate print-tool-versions
Expand Down Expand Up @@ -266,7 +302,13 @@ jobs:
chmod a+x $HOME/.cabal/bin/cabal-plan
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
# https://github.com/actions/checkout/issues/170
# - uses: actions/checkout@v2
- name: Checkout
run: |
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
git fetch origin $GITHUB_REF:$GITHUB_REF
git checkout $GITHUB_REF
- name: Validate print-config
run: sh validate.sh -j 2 -w ghc-7.8.4 -v --lib-only -s print-config
- name: Validate print-tool-versions
Expand Down Expand Up @@ -302,7 +344,13 @@ jobs:
run: apt-get install -y ghc-7.6.3-dyn
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
# https://github.com/actions/checkout/issues/170
# - uses: actions/checkout@v2
- name: Checkout
run: |
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
git fetch origin $GITHUB_REF:$GITHUB_REF
git checkout $GITHUB_REF
- name: Validate print-config
run: sh validate.sh -j 2 -w ghc-7.6.3 -v --lib-only -s print-config
- name: Validate print-tool-versions
Expand Down Expand Up @@ -340,7 +388,13 @@ jobs:
run: apt-get install -y ghc-7.0.4-dyn ghc-7.2.2-dyn ghc-7.4.2-dyn
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
# https://github.com/actions/checkout/issues/170
# - uses: actions/checkout@v2
- name: Checkout
run: |
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
git fetch origin $GITHUB_REF:$GITHUB_REF
git checkout $GITHUB_REF
- name: Validate print-config
run: sh validate.sh -j 2 -w ghc-8.8.3 -v --lib-only -s print-config
- name: Validate print-tool-versions
Expand Down
8 changes: 7 additions & 1 deletion boot/ci-linux.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ jobs:
{% endif %}
- name: Update Hackage index
run: cabal v2-update
- uses: actions/checkout@v2
# https://github.com/actions/checkout/issues/170
# - uses: actions/checkout@v2
- name: Checkout
run: |
git clone --depth 1 https://github.com/$GITHUB_REPOSITORY.git .
git fetch origin $GITHUB_REF:$GITHUB_REF
git checkout $GITHUB_REF
{% for step in job.steps %}
- name: Validate {{step}}
run: sh validate.sh -j 2 -w ghc-{{job.version}} -v {{job.flags}} -s {{step}}
Expand Down

0 comments on commit bf0f29a

Please sign in to comment.