Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binary #2

Open
wants to merge 12 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ci

on:
workflow_dispatch:
pull_request:
branches:
- c4t
- dev
env:
docker_image: "c4tplatform/camino-conduit"

jobs:
build_docker:
name: Build Docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: build docker image
run: |
docker build . -t ${{ env.docker_image }}:temp

mo-c4t marked this conversation as resolved.
Show resolved Hide resolved
build_binary:
name: Build Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: build binary
run: |
cd src
cargo build --release
./target/release/conduit --version
21 changes: 0 additions & 21 deletions .github/workflows/docker.yml

This file was deleted.

23 changes: 22 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,25 @@ jobs:
push: true
tags: |
${{ env.docker_image }}:latest
${{ env.docker_image }}:${{ github.event.release.tag_name }}
${{ env.docker_image }}:${{ github.event.release.tag_name }}


build_binary:
name: Build Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: build binary
run: |
cd src
cargo build --release
./target/release/conduit --version
tar -czvf camino-conduit-linux-amd64-${{ github.event.release.tag_name }}.tar.gz --directory=target/release conduit


- name: upload binary
uses: softprops/action-gh-release@v2
with:
files: camino-conduit-linux-amd64-${{ github.event.release.tag_name }}.tar.gz

2 changes: 1 addition & 1 deletion Cargo.lock
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why changes in dependencies?

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ dbg_macro = "warn"
str_to_string = "warn"

[package]
authors = ["timokoesters <[email protected]>"]
description = "A Matrix homeserver written in Rust"
authors = ["evlekht <[email protected]>"]
description = "A Matrix homeserver written in Rust to serve Camino purposes"
edition = "2021"
homepage = "https://conduit.rs"
license = "Apache-2.0"
name = "conduit"
readme = "README.md"
repository = "https://gitlab.com/famedly/conduit"
version = "0.8.0"
repository = "https://github.com/chain4travel/camino-conduit"
version = "1.0.0"
mo-c4t marked this conversation as resolved.
Show resolved Hide resolved

# See also `rust-toolchain.toml`
rust-version = "1.78.0"
Expand Down
Loading