Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
7b40cb7
Create main.yml
penalosa Sep 27, 2022
858befc
Update main.yml
penalosa Sep 27, 2022
f5cceec
Update main.yml
penalosa Sep 27, 2022
a6c4984
Update main.yml
penalosa Sep 27, 2022
ed233a4
Update main.yml
penalosa Sep 28, 2022
e63368c
Update main.yml
penalosa Sep 28, 2022
aa77c23
Update main.yml
penalosa Sep 28, 2022
ecf56fe
Update main.yml
penalosa Sep 28, 2022
2b2d70d
Update main.yml
penalosa Sep 28, 2022
591d9e0
Update main.yml
penalosa Sep 28, 2022
765dd66
Update main.yml
penalosa Sep 29, 2022
a868788
Update main.yml
penalosa Sep 29, 2022
cd56f45
Update compatibility-date.capnp
penalosa Sep 29, 2022
18095bc
Update compatibility-date.capnp
penalosa Sep 29, 2022
e0134a4
Update build-npm-package.sh
penalosa Sep 29, 2022
028fb05
Merge pull request #1 from penalosa/add-ci
penalosa Sep 29, 2022
a833cd3
Update main.yml
penalosa Sep 29, 2022
0cd0529
Update main.yml
penalosa Sep 29, 2022
ad4f256
Update main.yml
penalosa Sep 29, 2022
6b91279
Update main.yml
penalosa Sep 29, 2022
2e23b42
Create autotag.yml
penalosa Sep 29, 2022
4d8a2c7
Update main.yml
penalosa Sep 29, 2022
ffa95b2
Update main.yml
penalosa Sep 29, 2022
27dde08
Update main.yml
penalosa Sep 29, 2022
125e94e
Update main.yml
penalosa Sep 29, 2022
9a1c628
Update main.yml
penalosa Sep 29, 2022
7e5fb6d
Update main.yml
penalosa Sep 29, 2022
e2e72bf
Update main.yml
penalosa Sep 29, 2022
716b802
Update main.yml
penalosa Sep 29, 2022
585f281
Update main.yml
penalosa Sep 29, 2022
04f9a99
Update main.yml
penalosa Sep 29, 2022
e410ae5
Update main.yml
penalosa Sep 29, 2022
32bc594
Update main.yml
penalosa Sep 29, 2022
51d40fd
Update main.yml
penalosa Sep 29, 2022
d0ac117
Update main.yml
penalosa Sep 29, 2022
b0d038f
Update compatibility-date.capnp
penalosa Sep 29, 2022
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/autotag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

93 changes: 93 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Tests

on:
pull_request:
paths-ignore:
- 'doc/**'
push:
branches:
- main

jobs:
version:
outputs:
version: ${{ steps.echo.outputs.version }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: bazelbuild/setup-bazelisk@v2
- name: Cache
id: cache
uses: actions/cache@v2
with:
path: ~/.cache/bazel
key: capnp-cache
- name: build capnp
run: |
bazel build --remote_timeout=5 --remote_cache=https://bazel:${{ secrets.BAZEL_CACHE_KEY }}@bazel-remote-cache.s.workers.dev @capnp-cpp//src/capnp:capnp_tool
- id: echo
run: |
echo "::set-output name=version::1.$(bazel-bin/external/capnp-cpp/src/capnp/capnp_tool eval src/workerd/io/compatibility-date.capnp supportedCompatibilityDate | tr -d '-' | tr -d '"').0"
linux:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: bazelbuild/setup-bazelisk@v2
- name: Cache
id: cache
uses: actions/cache@v2
with:
path: ~/.cache/bazel
key: ${{ runner.os }}-${{ runner.arch }}-bazel-cache

- name: install dependencies
run: |
mkdir -p ~/.cache/bazel
export DEBIAN_FRONTEND=noninteractive
sudo apt-get install -y build-essential git clang libc++-dev

- name: build
run: |
bazel build --remote_timeout=5 --remote_cache=https://bazel:${{ secrets.BAZEL_CACHE_KEY }}@bazel-remote-cache.s.workers.dev @capnp-cpp//src/capnp:capnp_tool
- name: Upload binary
uses: actions/upload-artifact@v3.1.0
with:
name: ${{ runner.os }}-${{ runner.arch }}-binary
path: bazel-bin/external/capnp-cpp/src/capnp/capnp_tool

release:
# if: ${{ github.repository_owner == 'cloudflare' }}
name: Release
needs: [version, linux]
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Tag with compatibility date
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ needs.version.outputs.version }}
- name: Download a Build Artifact
uses: actions/download-artifact@v3.0.0
with:
# Artifact name
name: Linux-X64-binary
# Destination path
path: /tmp
- uses: ncipollo/release-action@v1
with:
artifacts: "/tmp/Linux-X64-binary"
generateReleaseNotes: true
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ needs.version.outputs.version }}







6 changes: 6 additions & 0 deletions build-npm-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ bazel_build() {
}

case $1 in
version)
echo $WORKERD_VERSION
;;
date)
echo $LATEST_COMPATIBILITY_DATE
;;
build-darwin-arm64)
bazel_build npm/workerd-darwin-arm64
;;
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/io/compatibility-date.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

$import "/capnp/c++.capnp".namespace("workerd");

const supportedCompatibilityDate :Text = "2022-09-26";
const supportedCompatibilityDate :Text = "2022-09-30";
# Newest compatibility date that can safely be set using code compiled from this repo. Trying to
# run a Worker with a newer compatibility date than this will fail.
#
Expand Down