Skip to content

Commit

Permalink
Merge pull request #70 from Duddino/ghactions
Browse files Browse the repository at this point in the history
Improve gh actions
  • Loading branch information
panleone authored Nov 27, 2023
2 parents b9efb7a + e361f0c commit ac8c05f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 11 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,20 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo npm i -g -y wasm-pack
rustup toolchain install nightly-2023-03-28-x86_64-unknown-linux-gnu
rustup component add rust-src --toolchain nightly-2023-03-28-x86_64-unknown-linux-gnu
- name: Build
run: cargo build --verbose
run: make pack
- name: Run tests
run: cargo test --verbose
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: npm_packages
path: |
js/*.tgz
pkg/*.tgz
pkg_multicore/*.tgz
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ publish: all
cd pkg_multicore; npm publish
cd js; npm publish

.PHONE: pack
pack: all
cd pkg; npm pack
cd pkg_multicore; npm pack
cd js; npm pack

.PHONY: clean
clean:
cargo clean
Expand Down
20 changes: 10 additions & 10 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ac8c05f

Please sign in to comment.