dagger-rs/.github/workflows/ci.yaml

37 lines
1.2 KiB
YAML
Raw Normal View History

name: ci
on:
pull_request:
2023-02-18 17:04:40 +01:00
push:
branches:
- "main"
env:
CARGO_TERM_COLOR: always
2023-02-18 17:05:40 +01:00
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Update rust toolchain
run: rustup update stable && rustup default stable
2023-02-20 11:28:24 +01:00
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: "~/.cargo/bin/\n~/.cargo/registry/index/\n~/.cargo/registry/cache/\n~/.cargo/git/db/\ntarget/"
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo
2023-02-18 17:13:41 +01:00
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.0.0
2023-04-30 00:21:52 +02:00
-
name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v2
2023-04-30 00:29:53 +02:00
- name: Run dagger [CI]
2023-04-30 00:28:23 +02:00
run: |
2023-04-30 00:31:24 +02:00
export _EXPERIMENTAL_DAGGER_CACHE_CONFIG="type=gha,mode=max,url=$ACTIONS_CACHE_URL,token=$ACTIONS_RUNTIME_TOKEN"
2023-04-30 00:29:53 +02:00
cargo run -p ci -- pr