name: Publish sled artifact on: push: branches: - master jobs: publish-dev-artifact: # Registered on an arm64 macOS act_runner host — see # .gitea/workflows/README.md for registration instructions. runs-on: [arm64-mac] steps: - name: Checkout uses: actions/checkout@v4 - name: Build linux-arm64 sled binary env: # Dedicated target dir so this CI build never clobbers a developer's # incremental target/release build on the shared runner host, mirroring # SLED_TARGET_DIR in server/src/chat/transport/matrix/release.rs. CARGO_TARGET_DIR: target/ci-release run: cargo build --release -p huskies - name: Stage artifact run: cp target/ci-release/release/huskies target/ci-release/release/huskies-linux-arm64 - name: Publish to dev channel env: HUSKIES_CHANNEL_URL: ${{ secrets.HUSKIES_CHANNEL_URL }} HUSKIES_CHANNEL_TOKEN: ${{ secrets.HUSKIES_CHANNEL_TOKEN }} run: script/ci-publish-artifact target/ci-release/release/huskies-linux-arm64 "$(git rev-parse --short HEAD)"