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 3 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
15 changes: 13 additions & 2 deletions .github/workflows/docker.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-docker-image
name: ci

on:
workflow_dispatch:
Expand All @@ -18,4 +18,15 @@ jobs:

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

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

- name: build binary
run: |
cd src
cargo build --release
mo-c4t marked this conversation as resolved.
Show resolved Hide resolved
22 changes: 21 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,24 @@ 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
mo-c4t marked this conversation as resolved.
Show resolved Hide resolved
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
mo-c4t marked this conversation as resolved.
Show resolved Hide resolved

Loading