Skip to content

Commit

Permalink
Check in a workflow and a janky demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ellenhp committed Jan 27, 2024
1 parent ee2402b commit de0d582
Show file tree
Hide file tree
Showing 17 changed files with 2,329 additions and 2,078 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/continuous_deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy demo
on:
push:
branches: [main]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown

- uses: jetli/[email protected]
- uses: jetli/[email protected]

- uses: actions/checkout@v2

- run: cd parser_demo && trunk build --release

- uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./parser_demo/dist
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ resolver = "2"
members = [
"airmail",
"airmail_parser",
"parser_demo",
]
3 changes: 1 addition & 2 deletions airmail_parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ edition = "2021"
[dependencies]
deunicode = "1.4.2"
fst = { version = "0.4.7", features = ["levenshtein"] }
hashlink = "0.9.0"
inventory = "0.3.14"
lru = "0.12.1"
lazy_static = "1.4.0"
log = "0.4.20"
nom = "7.1.3"
Expand Down
17 changes: 16 additions & 1 deletion airmail_parser/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,26 @@ fn main() {
],
&[],
);
// We need a synonym system.
helper.build_fst(
"dicts/en/wof_localities.txt",
"dicts/en/wof_localities.fst",
&[],
&[],
&[
("saint", "st"),
("north", "n"),
("south", "s"),
("east", "e"),
("west", "w"),
("northwest", "nw"),
("northeast", "ne"),
("southwest", "sw"),
("southeast", "se"),
("north-west", "nw"),
("north-east", "ne"),
("south-west", "sw"),
("south-east", "se"),
],
);
helper.build_fst(
"dicts/en/wof_regions.txt",
Expand Down
Loading

0 comments on commit de0d582

Please sign in to comment.