Skip to content

Commit

Permalink
Refactor CI workflow to remove Docker image build and push steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Aitthi committed Sep 29, 2024
1 parent a015a3e commit 1eafa17
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/Ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,17 @@ on:
jobs:
build-and-release-binaries:
runs-on: ubuntu-latest
needs: build-and-push-docker-image
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential pkg-config libssl-dev perl
- name: Set up Rust
uses: actions/setup-rust@v1
with:
rust-version: stable

- name: Install cross
run: cargo install cross
run: cargo install cross --git https://github.com/cross-rs/cross

- name: Build Linux binary
run: |
Expand All @@ -38,7 +32,7 @@ jobs:
mkdir -p build/macos
cp target/x86_64-apple-darwin/release/easy-proxy build/macos/
- name: Create GitHub Release
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
Expand All @@ -49,7 +43,7 @@ jobs:
draft: false
prerelease: false

- name: Upload Linux Binary to Release
- name: Upload Linux binary to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -59,7 +53,7 @@ jobs:
asset_name: easy-proxy-linux
asset_content_type: application/octet-stream

- name: Upload macOS Binary to Release
- name: Upload macOS binary to Release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 1eafa17

Please sign in to comment.