Skip to content

Commit

Permalink
Merge pull request #240 from tfausak/gh239-upx
Browse files Browse the repository at this point in the history
Compress executables with UPX
  • Loading branch information
tfausak authored May 1, 2021
2 parents e738fe7 + aa939da commit bcbc1d7
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM haskell:8.10.4
ARG USER=haskell
RUN useradd --create-home --shell "$( which bash )" "$USER"
USER "$USER"
ENV PATH="/home/$USER/.cabal/bin:$PATH"
9 changes: 9 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"build": {
"dockerfile": "Dockerfile"
},
"extensions": [
"taylorfausak.purple-yolk"
],
"postCreateCommand": "cabal update"
}
9 changes: 6 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: curl --location --output hlint.tar.gz https://github.com/ndmitchell/hlint/releases/download/v3.2.7/hlint-3.2.7-x86_64-linux.tar.gz
- run: curl --location --output hlint.tar.gz https://github.com/ndmitchell/hlint/releases/download/v3.3.1/hlint-3.3.1-x86_64-linux.tar.gz
- run: gzip --decompress hlint.tar.gz
- run: tar --extract --file hlint.tar
- run: echo '::add-matcher::config/hlint-problem-matcher.json'
- run: hlint-3.2.7/hlint --hint config/hlint.yaml src
- run: hlint-3.3.1/hlint --hint config/hlint.yaml src

brittany:
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -75,7 +75,10 @@ jobs:

- run: cabal exec runghc src/util/copy-executable.hs artifact/${{ matrix.os }}

- run: strip artifact/${{ matrix.os }}/rattletrap
- uses: svenstaro/upx-action@v2
with:
file: artifact/${{ matrix.os }}/rattletrap
args: --best

- run: cp output/schema.json artifact/${{ matrix.os }}

Expand Down

0 comments on commit bcbc1d7

Please sign in to comment.