Skip to content

Commit 1ad08e3

Browse files
committed
Add examples to Makefile
1 parent ad1177a commit 1ad08e3

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Build
1919
run: cargo build --verbose
2020
- name: Run tests
@@ -39,4 +39,4 @@ jobs:
3939
4040
- name: SSH, Pull, and Build Main and Examples
4141
run: |
42-
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -p ${{ secrets.SSH_PORT || 22 }} "cd $HOME/ww-rs && make build examples"
42+
ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -p ${{ secrets.SSH_PORT || 22 }} "cd ~/ww-rs && git checkout master && git pull && make build examples"

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.PHONY: clean examples
2+
WASM_EXAMPLES := examples/wasm
3+
4+
all: clean build examples
5+
6+
build:
7+
cargo build --release
8+
9+
clean:
10+
rm -rf target
11+
12+
examples:
13+
@cd $(WASM_EXAMPLES)/echo; make

0 commit comments

Comments
 (0)