Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
63 lines (53 loc) · 1.8 KB

File metadata and controls

63 lines (53 loc) · 1.8 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Haskell CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- name: Copy repo into actions
uses: actions/checkout@v3
- name: install dependancies, build and test stack project.
uses: freckle/stack-action@v5
with:
stack-build-arguments: --ghc-options="-fno-warn-unused-imports -fno-warn-unused-matches -fno-warn-type-defaults -fno-warn-missing-export-lists"
stack-build-arguments-test: --ghc-options="-fno-warn-unused-imports -fno-warn-unused-matches -fno-warn-type-defaults -fno-warn-missing-export-lists"
- name: Set up environment variable
run: echo "FLAVOUR=9.8" >> $GITHUB_ENV
- name: Download wasm32-wasi-cabal
run: |
curl https://gitlab.haskell.org/haskell-wasm/ghc-wasm-meta/-/raw/master/bootstrap.sh | sh
source ~/.ghc-wasm/add_to_github_path.sh
- name: Building wasm
run: |
wasm32-wasi-cabal build sql2er-wasm -f build-sql2er-wasm
- name: Copy binary and index.html
run: |
mkdir -p artifact_dir
cp dist-newstyle/build/wasm32-wasi/ghc-9.8.3.20241108/sql2er-0.1.0.1/x/sql2er-wasm/opt/build/sql2er-wasm/sql2er-wasm.wasm artifact_dir/
cp index.html artifact_dir/
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: artifact_dir/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Morty Proxy This is a proxified and sanitized view of the page, visit original site.