Fix adding to database #130
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test project | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
run: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setting up envs | |
run: echo "GIT_SHA=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | |
- name: Install build dependencies | |
run: | | |
cargo install cargo-make | |
brew install dpkg ldid coreutils | |
bundle install | |
- name: Install GUI build dependencies | |
run: | | |
cd twackup-gui | |
pod install | |
- name: Install rust target support | |
run: | | |
rustup target add aarch64-apple-ios x86_64-apple-ios | |
rustup toolchain install nightly | |
rustup component add rust-src --toolchain nightly | |
- name: Build & test | |
run: | | |
cargo build-ios | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Twackup-rootfull-g${{ env.GIT_SHA }} | |
path: target/artifacts/rootfull/*.deb | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Twackup-rootless-g${{ env.GIT_SHA }} | |
path: target/artifacts/rootless/*.deb | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Twackup-g${{ env.GIT_SHA }} | |
path: target/artifacts/*.ipa |