summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-10-17 08:27:49 -0700
committerGitHub <noreply@github.com>2023-10-17 11:27:49 -0400
commit01b5d1d2ff6ca91b2909dfa67295f59b53e6f065 (patch)
treebc2e62a8eb8cb5948a1d6a3d02bbca6f0ad16f05 /.github
parent4c54492770cd7dcf03360c9061358f6e640b5075 (diff)
YJIT: Add a cargo job for Arm64 and remove .cirrus.yml (#8679)
* YJIT: Add a cargo job for Arm64 * YJIT: Use command names as job names They look more consistent with jobs that use the command name as a job name, such as `make (check)`, `make (test-bundled-gems)`, etc. * Remove .cirrus.yml
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/yjit-macos.yml28
-rw-r--r--.github/workflows/yjit-ubuntu.yml4
2 files changed, 30 insertions, 2 deletions
diff --git a/.github/workflows/yjit-macos.yml b/.github/workflows/yjit-macos.yml
index 1f244fd9e4..eb6cd60e17 100644
--- a/.github/workflows/yjit-macos.yml
+++ b/.github/workflows/yjit-macos.yml
@@ -26,6 +26,34 @@ permissions:
contents: read
jobs:
+ cargo:
+ name: cargo test
+
+ runs-on: macos-arm-oss
+
+ if: >-
+ ${{github.repository == 'ruby/ruby' &&
+ !(false
+ || contains(github.event.head_commit.message, '[DOC]')
+ || contains(github.event.pull_request.title, '[DOC]')
+ || contains(github.event.pull_request.labels.*.name, 'Documentation')
+ || (github.event_name == 'push' && github.actor == 'dependabot[bot]')
+ )}}
+
+ steps:
+ - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
+
+ - run: RUST_BACKTRACE=1 cargo test
+ working-directory: yjit
+
+ # Also compile and test with all features enabled
+ - run: RUST_BACKTRACE=1 cargo test --all-features
+ working-directory: yjit
+
+ # Check that we can build in release mode too
+ - run: cargo build --release
+ working-directory: yjit
+
make:
strategy:
matrix:
diff --git a/.github/workflows/yjit-ubuntu.yml b/.github/workflows/yjit-ubuntu.yml
index 1e9d21154a..c188bea3e2 100644
--- a/.github/workflows/yjit-ubuntu.yml
+++ b/.github/workflows/yjit-ubuntu.yml
@@ -27,7 +27,7 @@ permissions:
jobs:
cargo:
- name: Rust cargo test
+ name: cargo test
# GitHub Action's image seems to already contain a Rust 1.58.0.
runs-on: ubuntu-20.04
@@ -59,7 +59,7 @@ jobs:
working-directory: yjit
lint:
- name: Rust lint
+ name: cargo clippy
# GitHub Action's image seems to already contain a Rust 1.58.0.
runs-on: ubuntu-20.04