diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 92e1378..f6825d1 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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