From cd0a96f48cb4cd16264f91682ed9edc4fedfd57e Mon Sep 17 00:00:00 2001 From: Roshan Date: Wed, 8 Jan 2025 12:07:50 +0000 Subject: [PATCH] Create release-workerd.yml --- .github/workflows/release-workerd.yml | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release-workerd.yml diff --git a/.github/workflows/release-workerd.yml b/.github/workflows/release-workerd.yml new file mode 100644 index 0000000..084812b --- /dev/null +++ b/.github/workflows/release-workerd.yml @@ -0,0 +1,32 @@ +name: Release workerd +on: + workflow_dispatch: + inputs: + version: + description: 'release version' + required: true +jobs: + build: + if: github.actor == 'roshanrags' + name: Release + strategy: + matrix: + include: + - os: 'ubuntu-24.04' + runs-on: 'ubicloud-standard-8' + OOS: linux + ARCH: amd64 + # - os: 'ubuntu-24.04' + # runs-on: 'ubicloud-standard-8-arm' + # OOS: linux + # ARCH: arm64 + runs-on: ${{ matrix.runs-on }} + steps: + - name: clone + run: rm -rf workerd && git clone https://github.com/cloudflare/workerd + - name: checkout + run: cd workerd && git checkout ${{github.events.inputs.version}} + - name: build + run: cd workerd && bazel build --config=thin-lto //src/workerd/server:workerd + - name: upload + run: AWS_ACCESS_KEY_ID=${{secrets.AWS_ACCESS_KEY_ID}} AWS_SECRET_ACCESS_KEY=${{secrets.AWS_SECRET_ACCESS_KEY}} aws s3 cp --endpoint-url ${{secrets.AWS_S3_ENDPOINT}} workerd/bazel-bin/src/workerd/server/workerd s3://artifacts/oyster/binaries/workerd_${{github.event.inputs.version}}_${{matrix.OOS}}_${{matrix.ARCH}}