Skip to content

Commit

Permalink
feat: Build agent on CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
thegamerx1 committed Dec 4, 2024
1 parent b44436c commit d989bd7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,33 @@ jobs:
docker manifest create ${tag} ${{ env.GHCR_REPO }}:${{ github.sha }}-amd64 ${{ env.GHCR_REPO }}:${{ github.sha }}-arm64
docker manifest push ${tag}
done
build-agent:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest] # Define Linux and Windows OS
architecture: [amd64, arm64] # Specify architectures for Linux only (not Windows)
exclude:
- os: windows-latest
architecture: arm64 # Exclude arm64 for Windows, as you want only amd64 for Windows
steps:
- name: Check out code
uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""
rust-version: 'stable'

- name: Build
run: |
cargo build --release -p agent
- name: Upload release binary as artifact
uses: actions/upload-artifact@v4
with:
name: agent-${{ matrix.os }}-${{ matrix.architecture }}
path: release/agent.exe


# build-docker:
# runs-on: windows-latest
Expand Down

0 comments on commit d989bd7

Please sign in to comment.