Skip to content

Commit

Permalink
Switch to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wafflespeanut committed Apr 2, 2024
1 parent 9ea02a7 commit 1e3ceda
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: build-master
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build app
run: |
docker run -t -v "$(pwd)":/home/rust/src wafflespeanut/rust-wasm-builder:nightly wasm-pack build
docker run -t -v "$(pwd)":/home/rust/src wafflespeanut/rust-wasm-builder:nightly sh -c "mv pkg/charcoal_bg.wasm target/charcoal_old.wasm && wasm-opt -O3 -o pkg/charcoal_bg.wasm target/charcoal_old.wasm"
docker run -t -v "$(pwd)":/home/node/app node sh -c "cd /home/node/app/pkg && npm link && cd .. && npm link rusty-sketch && npm install && npm run build"
docker build -t wafflespeanut/rusty-sketch .
- name: Push to registry
run: |
docker login -u="${{ secrets.DOCKER_USERNAME }}" -p="${{ secrets.DOCKER_PASSWORD }}"
docker push wafflespeanut/rusty-sketch
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
## ascii-art-generator

[![Build Status](https://travis-ci.org/wafflespeanut/ascii-art-generator.svg?branch=master)](https://travis-ci.org/wafflespeanut/ascii-art-generator)

> **NOTE:** This is a port of my [Python project](https://github.com/wafflespeanut/ascii-art-generator/tree/0b519b00b43eadb8500db30c304b2b87ad7eb159) to play with Rust and WASM.
Generates ASCII arts from JPEG/PNG images. [Live demo](https://waffles.space/ascii-gen/).
Expand Down

0 comments on commit 1e3ceda

Please sign in to comment.