Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NVIDIA/cccl
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d9ba9d702eab677147a0d004bd1b6090ac893987
Choose a base ref
..
head repository: NVIDIA/cccl
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 45ed25a6681b2bcd4eae1d1f6e3c7b95883e82ce
Choose a head ref
21 changes: 10 additions & 11 deletions .github/actions/workflow-run-job-linux/action.yml
Original file line number Diff line number Diff line change
@@ -18,15 +18,6 @@ description: "Run a job on a Linux runner."
# ```
# Error: JavaScript Actions in Alpine containers are only supported on x64 Linux runners. Detected Linux Arm64
# ```
#
# This action expects the repo to be already checked out in <workdir>/<repo-name>, e.g.
#
# - name: Checkout repo
# uses: actions/checkout@v4
# with:
# path: ${{github.event.repository.name}}
# persist-credentials: false


inputs:
id:
@@ -57,6 +48,11 @@ runs:
# Install script dependencies
apt update
apt install -y --no-install-recommends tree git
- name: Checkout repo
uses: actions/checkout@v4
with:
path: ${{github.event.repository.name}}
persist-credentials: false
- name: Add NVCC problem matcher
shell: bash --noprofile --norc -euo pipefail {0}
run: |
@@ -79,6 +75,10 @@ runs:
AWS_SESSION_TOKEN: "${{env.AWS_SESSION_TOKEN}}"
AWS_SECRET_ACCESS_KEY: "${{env.AWS_SECRET_ACCESS_KEY}}"
run: |
echo "[host] github.workspace: ${{github.workspace}}"
echo "[container] GITHUB_WORKSPACE: ${GITHUB_WORKSPACE:-}"
echo "[container] PWD: $(pwd)"
# Necessary because we're doing docker-outside-of-docker:
# Make a symlink in the container that matches the host's ${{github.workspace}}, so that way `$(pwd)`
# in `.devcontainer/launch.sh` constructs volume paths relative to the hosts's ${{github.workspace}}.
@@ -140,7 +140,7 @@ runs:
}
# Launch this container using the host's docker daemon
set -x # Print the launch.sh command-line to the log:
set -x
${{github.event.repository.name}}/.devcontainer/launch.sh \
--docker \
--cuda ${{inputs.cuda}} \
@@ -162,7 +162,6 @@ runs:
--volume "$(host_path "$RUNNER_TEMP")/.aws:/root/.aws" \
--volume "$(dirname "$(dirname "${{github.workspace}}")"):/__w" \
-- /ci.sh
set +x
- name: Prepare job artifacts
shell: bash --noprofile --norc -euo pipefail {0}
Original file line number Diff line number Diff line change
@@ -31,10 +31,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
with:
path: ${{github.event.repository.name}}
persist-credentials: false
- name: Run job
uses: ./${{github.event.repository.name}}/.github/actions/workflow-run-job-linux
uses: ./.github/actions/workflow-run-job-linux
with:
id: ${{ matrix.id }}
command: ${{ matrix.command }}
6 changes: 2 additions & 4 deletions .github/workflows/workflow-dispatch-two-stage-linux.yml
Original file line number Diff line number Diff line change
@@ -33,10 +33,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
with:
path: ${{github.event.repository.name}}
persist-credentials: false
- name: Run job
uses: ./${{github.event.repository.name}}/.github/actions/workflow-run-job-linux
uses: ./.github/actions/workflow-run-job-linux
with:
id: ${{ fromJSON(inputs.producers)[0].id }}
command: ${{ fromJSON(inputs.producers)[0].command }}
@@ -64,10 +63,9 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v4
with:
path: ${{github.event.repository.name}}
persist-credentials: false
- name: Run job
uses: ./${{github.event.repository.name}}/.github/actions/workflow-run-job-linux
uses: ./.github/actions/workflow-run-job-linux
with:
id: ${{ matrix.id }}
command: ${{ matrix.command }}