Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
76 changes: 38 additions & 38 deletions .github/workflows/hql_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,50 +2,50 @@ name: HQL Tests

on:
pull_request:
branches: [ main, dev ]
branches: [main, dev]

jobs:
hql-tests:
runs-on: ubuntu-latest # 8 vCPUs, 32 GB RAM
runs-on: ubuntu-latest # 8 vCPUs, 32 GB RAM
strategy:
matrix:
batch: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
batch: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

permissions:
contents: read
issues: write

steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: x86_64-unknown-linux-gnu
override: true
- name: Cache cargo registry
uses: actions/cache@v3
continue-on-error: true
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') || 'fallback' }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Make run.sh executable
run: chmod +x ./hql-tests/run.sh
- name: Run HQL tests
working-directory: ./hql-tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_OWNER: ${{ github.repository_owner }}
GITHUB_REPO: ${{ github.event.repository.name }}
run: ./run.sh batch 10 ${{ matrix.batch }}
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: x86_64-unknown-linux-gnu
override: true

- name: Cache cargo registry
uses: actions/cache@v3
continue-on-error: true
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') || 'fallback' }}
restore-keys: |
${{ runner.os }}-cargo-

- name: Make run.sh executable
run: chmod +x ./hql-tests/run.sh

- name: Run HQL tests
working-directory: ./hql-tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_OWNER: ${{ github.repository_owner }}
GITHUB_REPO: ${{ github.event.repository.name }}
run: ./run.sh batch 10 ${{ matrix.batch }}
20 changes: 10 additions & 10 deletions .github/workflows/s3_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ jobs:
role-to-assume: arn:aws:iam::${{ vars.AWS_ACCOUNT_ID }}:role/GitHubActionsS3Role
aws-region: us-east-1

- name: Upload specified files and directories to S3
- name: Create and upload template.tar.gz
run: |
# Sync directories
aws s3 sync helix-cli/ s3://helix-repo/template/helix-cli/ --exclude "target/*"
aws s3 sync helix-container/ s3://helix-repo/template/helix-container/ --exclude "target/*"
aws s3 sync helix-macros/ s3://helix-repo/template/helix-macros/ --exclude "target/*"
aws s3 sync metrics/ s3://helix-repo/template/metrics/ --exclude "target/*"
# Create tarball excluding .git and target directories
# Write to /tmp to avoid modifying the source directory during archiving
tar -czvf /tmp/template.tar.gz \
--exclude='.git' \
--exclude='target' \
.

# Upload root-level Cargo files
aws s3 cp Cargo.lock s3://helix-repo/template/Cargo.lock
aws s3 cp Cargo.toml s3://helix-repo/template/Cargo.toml
# Upload to S3
aws s3 cp /tmp/template.tar.gz s3://helix-repo/template.tar.gz

- name: Upload completion notification
if: success()
run: |
echo "Successfully uploaded all files to S3 bucket: helix-repo"
echo "Successfully uploaded template.tar.gz to S3 bucket: helix-repo"
echo "Upload triggered by: ${{ github.event_name }}"
echo "Reference: ${{ github.ref }}"
Loading
Loading