Skip to content

Commit b30bf9e

Browse files
committed
Run CI on the host machine as well
This also allows us to run the test suite.
1 parent 7ba1603 commit b30bf9e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/docker-image.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ jobs:
1818
run:
1919
docker build . --file Dockerfile.ci --tag avr-rust/avr-config.ci:$GITHUB_RUN_NUMBER
2020

21-
- name: Compile the crate
21+
- name: Compile the crate for AVR
2222
run:
23-
docker run avr-rust/avr-config.ci:$GITHUB_RUN_NUMBER
23+
docker run avr-rust/avr-config.ci:$GITHUB_RUN_NUMBER build -Z build-std=core --target avr-atmega328p.json --release
2424

25+
- name: Compile the crate and run tests for the host machine
26+
run:
27+
docker run avr-rust/avr-config.ci:$GITHUB_RUN_NUMBER test --all

Dockerfile.ci

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ WORKDIR /code/avr-config
1919

2020
ENV AVR_CPU_FREQUENCY_HZ=16000000
2121

22-
CMD ["cargo", "build", "-Z", "build-std=core", "--target", "avr-atmega328p.json", "--release"]
22+
ENTRYPOINT ["cargo"]

0 commit comments

Comments
 (0)