Skip to content

Commit

Permalink
rust cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
coilysiren committed Nov 24, 2023
1 parent 5a14cf0 commit 916dbb3
Show file tree
Hide file tree
Showing 5 changed files with 279 additions and 309 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@ jobs:
- uses: actions/checkout@v3
- run: curl -sSf https://sh.rustup.rs | sh -s -- -y
- run: cargo build
- run: cargo check
- run: cargo test
32 changes: 0 additions & 32 deletions bin/deploy-compiled-files.sh
Original file line number Diff line number Diff line change
@@ -1,34 +1,2 @@
#!/usr/bin/env bash

# setup git
git init
git config --global user.email "coilysiren@gmail.com"
git config --global user.name "Kai Siren"
git config --global pull.rebase true

# remove travis's readonly origin, add our origin with write permissions
# NOTE: GITHUB_API_TOKEN needs to be added to travis
# https://blog.github.com/2013-05-16-personal-api-tokens/
# https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
git remote remove origin
git remote add origin https://${GITHUB_API_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git

# setup our branch
git pull origin
git checkout deploy
git pull origin deploy
git merge -X theirs main

# do main work ( part 1 )
make build-wasm
# and commit
git add . && git commit -m "[[ BOT ]] build wasm :: ${TRAVIS_BUILD_NUMBER}"

# do main work ( part 2 )
make build-js-prod
# and commit
git add . && git commit -m "[[ BOT ]] build js :: ${TRAVIS_BUILD_NUMBER}"

# push changes
git pull origin deploy
git push origin deploy
Loading

0 comments on commit 916dbb3

Please sign in to comment.