Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
45 changes: 26 additions & 19 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@ jobs:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
docker_platform: 'linux/arm64,linux/amd64'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
docker_platform: 'linux/arm64,linux/amd64'
- platform: 'ubuntu-22.04'
args: ''
docker_platform: 'linux/amd64'
- platform: 'ubuntu-22.04' #ARM64
- platform: 'ubuntu-22.04-arm'
args: ''
docker_platform: 'linux/arm64'
- platform: 'ubuntu-22.04'
args: ''
docker_platform: 'linux/amd64'
- platform: 'windows-latest'
args: ''
docker_platform: 'windows/amd64' # adjust based on your image build support
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this removed?



runs-on: ${{ matrix.platform }}
Expand All @@ -41,7 +40,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
if: startsWith(matrix.platform, 'ubuntu-22.04')
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
Expand Down Expand Up @@ -84,10 +83,16 @@ jobs:
args: ${{ matrix.args }}

- name: Package Linux binary
if: matrix.platform == 'ubuntu-22.04'
if: startsWith(matrix.platform, 'ubuntu-22.04')
id: package-linux
run: |
BIN_NAME=agent_runner_${RELEASE_VERSION}_amd64
ARCH="$(uname -m)"
if [ "$ARCH" = "aarch64" ]; then
SUFFIX="arm64"
else
SUFFIX="amd64"
fi
BIN_NAME="agent_runner_${RELEASE_VERSION}_${SUFFIX}"
TAR_NAME=${BIN_NAME}.tar.gz

cp ./src-tauri/target/release/agent_runner $BIN_NAME
Expand All @@ -96,7 +101,7 @@ jobs:
echo "file=third_party/agent_runner/${TAR_NAME}" >> $GITHUB_OUTPUT

- name: Upload Linux binary to GitHub release
if: matrix.platform == 'ubuntu-22.04'
if: startsWith(matrix.platform, 'ubuntu-22.04')
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.RELEASE_VERSION }}
Expand All @@ -111,6 +116,7 @@ jobs:
RELEASE_VERSION: 0.1.21
IMAGE_NAME: ${{ secrets.DOCKER_USERNAME }}/${{ secrets.DOCKER_REPO_NAME }}


# Needed
strategy:
fail-fast: false
Expand All @@ -130,6 +136,7 @@ jobs:
args: '--target aarch64-unknown-linux-gnu'
docker_platform: 'linux/arm64'
tag_suffix: 'linux-arm64'

runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
Expand All @@ -145,13 +152,13 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build platform specific image using buildx
run: |
export PLATFORM_TAG=$(echo ${{ matrix.docker_platform }} | tr '/' '-')
docker buildx build \
--platform=${{ matrix.docker_platform }} \
--tag $IMAGE_NAME:${RELEASE_VERSION} \
--tag $IMAGE_NAME:latest \
--push \
.
shell: bash
- name: Build & push multi-arch
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: |
${{ env.IMAGE_NAME }}:${{ env.RELEASE_VERSION }}
${{ env.IMAGE_NAME }}:latest

40 changes: 22 additions & 18 deletions poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ autonomy-dev = {version = "==0.2.153", extras = ["all"]}
paradigm-flood = "^0.3.1"
lxml = {extras = ["html-clean"], version = "^5.3.1"}
aioprometheus = "^23.12.0"
connectorx = "^0.4.3"
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this dependency?


[tool.poetry.group.dev.dependencies]

Expand Down