Skip to content

CI with a container image #40

CI with a container image

CI with a container image #40

Workflow file for this run

name: Rust
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository }}/ci-image@sha256:9da24ac0528e3a96707ec4973bf441a08fb3fa6a1f018437394f5dee91cf02e4
steps:
- uses: actions/checkout@v4
- name: dfxvm init
run: |
echo "dfxvm requires the default version to be set once after starting the container (bug!)"
dfxvm default 0.22.0
dfx --version
- name: Clone Ledger Map
shell: bash
run: |
set -eExuo pipefail
(
cd ..
git clone --depth 1 https://github.com/decent-cloud/ledger-map.git
cd -
)
- name: Build and test
env:
# dfx requires XDG_DATA_HOME to be set
XDG_DATA_HOME: /usr/local
run: cargo make