Skip to content

Commit

Permalink
Fix CI and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
enfipy committed Jan 8, 2022
1 parent 9080ed6 commit 4c435b5
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 51 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: CI

on:
push:
branches: [main]
Expand All @@ -12,9 +11,7 @@ on:
- '.github/workflows/ci.yml'
- '**.rs'
- '**.toml'

jobs:

android-build-ubuntu:
name: Build Android example on Ubuntu latest
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
name: Docker images

on:
push:
branches: [main]
paths:
- '.github/docker/*.Dockerfile'
- '.github/workflows/docker.yml'

jobs:

build-crossbundle-dockerfile:
name: Build Crossbundle Dockerfile
runs-on: ubuntu-latest
Expand Down
49 changes: 23 additions & 26 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@

name: Build and publish

on:
push:
tags: ['v*']

jobs:

build-and-publish-to-crates-io:
name: Build and publish to crates.io
runs-on: macos-latest
Expand Down Expand Up @@ -39,7 +35,7 @@ jobs:
- name: Install cargo make
run: cargo install cargo-make
- name: Build binary
run: cargo make zip-release -e CARGO_MAKE_RELEASE_FLOW_TARGET=${{ matrix.binary_target }}
run: cargo make -e CARGO_MAKE_RELEASE_FLOW_TARGET=${{ matrix.binary_target }} zip-release
- name: Upload zip file
uses: svenstaro/upload-release-action@v2
with:
Expand All @@ -49,24 +45,25 @@ jobs:
overwrite: true
file_glob: true

# build-and-publish-release-examples:
# name: Build and publish examples to Github release
# needs: build-and-publish-to-crates-io
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@master
# - name: Install cargo make
# run: cargo install cargo-make
# - name: Build binary
# run: |
# cargo install --git=https://github.com/dodorare/crossbow --branch=main crossbundle
# rustup target add armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
# cargo make build-release-examples
# - name: Upload zip file
# uses: svenstaro/upload-release-action@v2
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# file: 'target/apks/*.apk'
# tag: ${{ github.ref }}
# overwrite: true
# file_glob: true
build-and-publish-release-examples:
name: Build and publish examples to Github release
needs: build-and-publish-to-crates-io
if: false # TODO: Finish examples and enable this
runs-on: macos-latest
steps:
- uses: actions/checkout@master
- name: Install cargo make
run: cargo install cargo-make
- name: Build binary
run: |
cargo install --git=https://github.com/dodorare/crossbow --branch=main crossbundle
rustup target add armv7-linux-androideabi aarch64-linux-android i686-linux-android x86_64-linux-android
cargo make build-release-examples
- name: Upload zip file
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: 'target/apks/*.apk'
tag: ${{ github.ref }}
overwrite: true
file_glob: true
10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbow"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Cross-Platform Rust Toolkit for Games 🏹"
Expand All @@ -11,11 +11,11 @@ readme = "README.md"
exclude = [".github/**/*"]

[dependencies]
crossbundle-derive = { path = "crossbundle/derive", version = "0.1.0" }
crossbundle-tools = { path = "crossbundle/tools", version = "0.1.0", optional = true }
crossbundle-derive = { path = "crossbundle/derive", version = "0.1.1" }
crossbundle-tools = { path = "crossbundle/tools", version = "0.1.1", optional = true }

crossbow-ads = { path = "plugins/ads", version = "0.1.0", optional = true }
crossbow-permissions = { path = "plugins/permissions", version = "0.1.0", optional = true }
crossbow-ads = { path = "plugins/ads", version = "0.1.1", optional = true }
crossbow-permissions = { path = "plugins/permissions", version = "0.1.1", optional = true }

[target.'cfg(target_os = "android")'.dependencies]
ndk-glue = { git = "https://github.com/rust-windowing/android-ndk-rs" }
Expand Down
6 changes: 3 additions & 3 deletions crossbundle/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbundle"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Build and publish apps for Android/iOS"
Expand All @@ -22,9 +22,9 @@ name = "cargo-crossbundle"
path = "src/main.rs"

[dependencies]
crossbundle-tools = { path = "../tools", version = "0.1.0" }
crossbundle-tools = { path = "../tools", version = "0.1.1" }

clap = { git = "https://github.com/clap-rs/clap", rev = "33d86effc9b34e207268977ba45c97f80b3f1b57" }
clap = { version = "3.0.5", features = ["derive"] }
cargo_toml = "0.10.1"
serde = { version = "1.0", features = ["derive"] }
dunce = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion crossbundle/derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbundle-derive"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Cross-Platform Rust Toolkit for Games 🏹"
Expand Down
4 changes: 2 additions & 2 deletions crossbundle/tools/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbundle-tools"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Build and publish apps for Android/iOS"
Expand Down Expand Up @@ -32,7 +32,7 @@ zip = "0.5.13"
zip-extensions = "0.6"
tempfile = "3.2"

cargo = "0.57.0"
cargo = "0.58.0"
cargo-util = "0.1.1"

[target.'cfg(unix)'.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions examples/bevy-2d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "bevy-2d"
version = "0.1.0"
version = "0.1.1"
authors = ["DodoRare Team <[email protected]>"]
edition = "2018"

[dependencies]
crossbow = { version = "0.1.0", path = "../../" }
crossbow = { version = "0.1.1", path = "../../" }
log = "0.4"
anyhow = "1.0"
bevy = { version = "0.6.0", features = ["mp3"] }
Expand Down
4 changes: 2 additions & 2 deletions examples/bevy-3d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "bevy-3d"
version = "0.1.0"
version = "0.1.1"
authors = ["DodoRare Team <[email protected]>"]
edition = "2021"

[dependencies]
crossbow = { version = "0.1.0", path = "../../" }
crossbow = { version = "0.1.1", path = "../../" }
log = "0.4"
anyhow = "1.0"
bevy = "0.6.0"
Expand Down
4 changes: 2 additions & 2 deletions examples/macroquad-3d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "macroquad-3d"
version = "0.1.0"
version = "0.1.1"
authors = ["DodoRare Team <[email protected]>"]
edition = "2018"

[dependencies]
crossbow = { version = "0.1.0", path = "../../" }
crossbow = { version = "0.1.1", path = "../../" }
log = "0.4"
anyhow = "1.0"
macroquad = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion plugins/ads/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbow-ads"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Cross-Platform Rust Toolkit for Games 🏹"
Expand Down
2 changes: 1 addition & 1 deletion plugins/permissions/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crossbow-permissions"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
authors = ["DodoRare Team <[email protected]>"]
description = "Cross-Platform Rust Toolkit for Games 🏹"
Expand Down

0 comments on commit 4c435b5

Please sign in to comment.