Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmastrac committed Feb 6, 2024
1 parent 37f6261 commit 1fe4477
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 17 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/ci.generate.ts
Expand Up @@ -9,6 +9,7 @@ const cacheVersion = 73;

const ubuntuX86Runner = "ubuntu-22.04";
const ubuntuX86XlRunner = "ubuntu-22.04-xl";
const ubuntuARMRunner = "ubicloud-standard-8-arm"
const windowsX86Runner = "windows-2022";
const windowsX86XlRunner = "windows-2022-xl";
const macosX86Runner = "macos-12";
Expand All @@ -26,6 +27,11 @@ const Runners = {
runner:
`\${{ github.repository == 'denoland/deno' && '${ubuntuX86XlRunner}' || '${ubuntuX86Runner}' }}`,
},
linuxArm: {
os: "linux",
arch: "aarch64",
runner: ubuntuARMRunner
},
macosX86: {
os: "macos",
arch: "x86_64",
Expand Down Expand Up @@ -399,6 +405,14 @@ const ci = {
...Runners.linuxX86,
job: "lint",
profile: "debug",
}, {
...Runners.linuxArm,
job: "lint",
profile: "debug",
}, {
...Runners.linuxArm,
job: "test",
profile: "debug",
}, {
...Runners.macosX86,
job: "lint",
Expand Down Expand Up @@ -456,7 +470,7 @@ const ci = {
...installDenoStep,
},
...installPythonSteps.map((s) =>
withCondition(s, "matrix.job != 'lint'")
withCondition(s, "matrix.job != 'lint' && (matrix.os != 'linux' || matrix.arch != 'aarch64')")
),
{
// only necessary for benchmarks
Expand Down
37 changes: 21 additions & 16 deletions .github/workflows/ci.yml
Expand Up @@ -29,7 +29,7 @@ jobs:
git config --global fetch.parallel 32
if: github.event.pull_request.draft == true
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 5
submodules: false
Expand All @@ -53,11 +53,6 @@ jobs:
strategy:
matrix:
include:
- os: linux
arch: aarch64
runner: ubicloud-standard-8-arm
job: test
profile: debug
- os: macos
arch: x86_64
runner: macos-12
Expand Down Expand Up @@ -116,6 +111,16 @@ jobs:
runner: ubuntu-22.04
job: lint
profile: debug
- os: linux
arch: aarch64
runner: ubicloud-standard-8-arm
job: lint
profile: debug
- os: linux
arch: aarch64
runner: ubicloud-standard-8-arm
job: test
profile: debug
- os: macos
arch: x86_64
runner: macos-12
Expand All @@ -138,7 +143,7 @@ jobs:
git config --global fetch.parallel 32
if: '!(matrix.skip)'
- name: Clone repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 5
submodules: false
Expand All @@ -165,7 +170,7 @@ jobs:
-czvf target/release/deno_src.tar.gz -C .. deno
- uses: dsherret/rust-toolchain-file@v1
if: '!(matrix.skip)'
- if: '!(matrix.skip) && (matrix.job == ''lint'' || matrix.job == ''test'' || matrix.job == ''bench'') && matrix.runner != ''ubicloud-standard-8-arm'''
- if: '!(matrix.skip) && (matrix.job == ''lint'' || matrix.job == ''test'' || matrix.job == ''bench'')'
name: Install Deno
uses: denoland/setup-deno@v1
with:
Expand All @@ -174,9 +179,9 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: 3.11
if: '!(matrix.skip) && (matrix.job != ''lint'') && (matrix.runner != ''ubicloud-standard-8-arm'')'
if: '!(matrix.skip) && (matrix.job != ''lint'' && (matrix.os != ''linux'' || matrix.arch != ''aarch64''))'
- name: Remove unused versions of Python
if: '!(matrix.skip) && (matrix.job != ''lint'' && (matrix.os == ''windows''))'
if: '!(matrix.skip) && (matrix.job != ''lint'' && (matrix.os != ''linux'' || matrix.arch != ''aarch64'') && (matrix.os == ''windows''))'
shell: pwsh
run: |-
$env:PATH -split ";" |
Expand All @@ -189,7 +194,7 @@ jobs:
with:
node-version: 18
- name: Install protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
version: '21.12'
repo-token: '${{ secrets.GITHUB_TOKEN }}'
Expand Down Expand Up @@ -326,17 +331,17 @@ jobs:
rustc --version
cargo --version
which dpkg && dpkg -l
#if [[ "${{ matrix.job }}" == "lint" ]] || [[ "${{ matrix.job }}" == "test" ]]; then
# deno --version
#fi
if [[ "${{ matrix.job }}" == "lint" ]] || [[ "${{ matrix.job }}" == "test" ]]; then
deno --version
fi
if [ "${{ matrix.job }}" == "bench" ]
then
node -v
./tools/install_prebuilt.js wrk hyperfine
fi
if: '!(matrix.skip)'
- name: Cache Cargo home
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |-
~/.cargo/registry/index
Expand Down Expand Up @@ -627,7 +632,7 @@ jobs:
body_path: target/release/release-notes.md
draft: true
- name: Save cache build output (main)
uses: actions/cache/save@v3
uses: actions/cache/save@v4
if: '!(matrix.skip) && ((matrix.job == ''test'' || matrix.job == ''lint'') && github.ref == ''refs/heads/main'')'
with:
path: |-
Expand Down

0 comments on commit 1fe4477

Please sign in to comment.