Skip to content
Open
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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
matrix:
os:
- ubuntu-latest
- ubuntu-24.04-arm
- macos-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ env:
jobs:
verify:
name: Verify release tag
if: github.repository == 'openclaw/ocm' && github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
outputs:
# Build and publish consume only the signed tag target validated below.
Expand Down Expand Up @@ -63,6 +63,8 @@ jobs:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
- os: macos-15-intel
target: x86_64-apple-darwin
- os: macos-14
Expand Down
5 changes: 0 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ detect_target() {
;;
esac

if [[ "$os" == "unknown-linux-gnu" && "$arch" == "aarch64" ]]; then
echo "error: unsupported platform: aarch64-unknown-linux-gnu" >&2
exit 1
fi

printf '%s-%s\n' "$arch" "$os"
}

Expand Down
11 changes: 3 additions & 8 deletions src/cli/self_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,6 @@ fn release_asset_name(os: &str, arch: &str) -> Result<String, String> {
}
};
let target = format!("{arch_target}-{os_target}");
if target == "aarch64-unknown-linux-gnu" {
return Err(format!(
"ocm self update is not supported on this platform yet: {target}"
));
}
Ok(format!("ocm-{target}.tar.gz"))
}

Expand Down Expand Up @@ -657,9 +652,9 @@ mod tests {
assert!(workflow.contains(&format!("target: {target}")));
}
assert_eq!(
release_asset_name("linux", "aarch64").unwrap_err(),
"ocm self update is not supported on this platform yet: aarch64-unknown-linux-gnu"
release_asset_name("linux", "aarch64").unwrap(),
"ocm-aarch64-unknown-linux-gnu.tar.gz"
);
assert!(!workflow.contains("target: aarch64-unknown-linux-gnu"));
assert!(workflow.contains("target: aarch64-unknown-linux-gnu"));
}
}
Loading