@@ -7,7 +7,7 @@ on:
7 branches: [master]
7 branches: [master]
10− build:
10+ linux-build:
11 runs-on: ubuntu-latest
11 runs-on: ubuntu-latest
@@ -26,8 +26,30 @@ jobs:
26 ${{ runner.os }}-build-stack-${{ hashFiles('**/stack.yaml') }}
26 ${{ runner.os }}-build-stack-${{ hashFiles('**/stack.yaml') }}
27 ${{ runner.os }}-build-stack-
27 ${{ runner.os }}-build-stack-
28 - name: Build
28 - name: Build
29− run: stack build
29+ run: stack build --ghc-options="-O3 -j" --local-bin-path out --copy-bins --flag openapi-diff:Static
30 - name: Test
30 - name: Test
31 run: stack test --test-arguments='--hide-successes --no-create'
31 run: stack test --test-arguments='--hide-successes --no-create'
32+ - name: Upload artifact
33+ uses: actions/upload-artifact@v2
35+ name: openapi-diff-linux
36+ path: out/openapi-diff
39+ if: github.ref == 'refs/heads/master'
40+ runs-on: "ubuntu-latest"
43+ - uses: actions/download-artifact@v2
32−# - name: Test
44+ - name: Zip
33−# run: stack test
45+ run: |
46+ chmod +x openapi-diff-linux/openapi-diff
47+ zip openapi-diff-linux openapi-diff-linux/openapi-diff
48+ - uses: "marvinpinto/action-automatic-releases@latest"
50+ repo_token: "${{ secrets.GITHUB_TOKEN }}"
51+ automatic_release_tag: "latest"