Skip to content

Commit

Permalink
Merge pull request #66 from Kobzol/docker-ci
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
Kobzol authored Jan 24, 2025
2 parents 89c7bb8 + 4ce62c8 commit 3ae26b9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ jobs:
rust-version: [ 1.80.0, stable, beta, nightly ]
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install toolchain
run: |
rustup toolchain install ${{ matrix.rust-version }}
rustup default ${{ matrix.rust-version }}
rustup component add clippy rustfmt llvm-tools-preview
- uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build --all --all-targets

Expand All @@ -41,16 +43,29 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install toolchain
run: |
rustup toolchain install 1.80.0
rustup default 1.80.0
rustup component add clippy rustfmt llvm-tools-preview
- uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build --all --all-targets

- name: Run tests
run: cargo test

build_docker:
name: Build Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v5
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM rust:1.76-slim AS src
FROM rust:1.80-slim AS src

COPY . .

RUN cargo install --path .

FROM rust:1.76-slim
FROM rust:1.80-slim

COPY --from=src /usr/local/cargo/bin/cargo-pgo /usr/local/bin/cargo-pgo

Expand Down

0 comments on commit 3ae26b9

Please sign in to comment.