Skip to content

Commit

Permalink
ci: restore x86_64 linux build files
Browse files Browse the repository at this point in the history
  • Loading branch information
georgik committed Oct 20, 2023
1 parent e6331b9 commit e050f83
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-aarch64-unknown-linux-gnu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
run: |
docker run -e RELEASE_DESCRIPTION='${{ github.event.inputs.release_version }}' --name rust-linux ubuntu-builder ./build.sh
mkdir -p build
docker cp rust-linux:rust/build/dist build/dist
docker cp rust-linux:/home/rust/rust/build/dist build/dist
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
Expand Down
13 changes: 13 additions & 0 deletions support/rust-build/x86_64-unknown-linux-gnu/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
RUN apt-get update \
&& apt-get install -y vim nano git curl gcc ninja-build cmake libudev-dev python3 python3-pip libusb-1.0-0 libssl-dev \
pkg-config libtinfo5

RUN adduser --disabled-password --gecos "" rust
USER rust
WORKDIR /home/rust
COPY build.sh /home/rust/build.sh
8 changes: 8 additions & 0 deletions support/rust-build/x86_64-unknown-linux-gnu/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

set -e

git clone --recursive --depth 1 --shallow-submodules https://github.com/esp-rs/rust.git
cd rust
python3 src/bootstrap/configure.py --experimental-targets=Xtensa --release-channel=nightly --release-description="${RELEASE_DESCRIPTION}" --enable-extended --enable-cargo-native-static --tools=clippy,cargo,rustfmt,rust-analyzer-proc-macro-srv --dist-compression-formats='xz' --enable-lld
python3 x.py dist --stage 2

0 comments on commit e050f83

Please sign in to comment.