Skip to content

Commit

Permalink
feat: add rust build stage
Browse files Browse the repository at this point in the history
This adds a build stage for https://rust-lang.org

Signed-off-by: Cas de Reuver <cas@reuver.co>
Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
casdr authored and frezbo committed Jan 15, 2024
1 parent 1659d82 commit b677a2b
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 6 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2023-11-27T19:06:58Z by kres latest.
# Generated on 2024-01-15T15:10:45Z by kres latest.

name: default
concurrency:
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
labels: ${{ steps.retrieve-pr-labels.outputs.result }}
services:
buildkitd:
image: moby/buildkit:v0.12.3
image: moby/buildkit:v0.12.4
options: --privileged
ports:
- 1234:1234
Expand Down Expand Up @@ -70,11 +70,12 @@ jobs:
make PUSH=true
- name: Retrieve PR labels
id: retrieve-pr-labels
if: github.event_name == 'pull_request' && always()
uses: actions/github-script@v6
with:
retries: "3"
script: |
if (context.eventName != "pull_request") { return "[]" }
const resp = await github.rest.issues.get({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand All @@ -101,7 +102,7 @@ jobs:
- default
services:
buildkitd:
image: moby/buildkit:v0.12.3
image: moby/buildkit:v0.12.4
options: --privileged
ports:
- 1234:1234
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/weekly.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2023-11-27T19:06:58Z by kres latest.
# Generated on 2024-01-15T15:10:45Z by kres latest.

name: weekly
concurrency:
Expand All @@ -16,7 +16,7 @@ jobs:
- pkgs
services:
buildkitd:
image: moby/buildkit:v0.12.3
image: moby/buildkit:v0.12.4
options: --privileged
ports:
- 1234:1234
Expand Down
5 changes: 5 additions & 0 deletions Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@ vars:
rhash_sha256: 8e7d1a8ccac0143c8fe9b68ebac67d485df119ea17a613f4038cda52f84ef52a
rhash_sha512: 00a7e5e058b53ce20ae79509815452ed9cb699d1322b678220b72c61dea3ea2f8fa131acfade8bb6d9f6af913f0c3c472330841181b22314b8755166310c946f

# renovate: datasource=github-tags depName=rust-lang/rust
rust_version: 1.75.0
rust_sha256: 473978b6f8ff216389f9e89315211c6b683cf95a966196e7914b46e8cf0d74f6
rust_sha512: fdb0642e93915c150dd352c1c49fda275f61e78a91a6ff7403bd275fceb86563403055c00a0c745911bc9e17656e80034d257274ad3d306b1f3314ec1c541dcb

# renovate: datasource=git-tags extractVersion=^v(?<version>.*)$ depName=git://git.savannah.gnu.org/sed.git
sed_version: 4.9
sed_sha256: 6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181
Expand Down
Binary file modified deps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions rust/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: rust
dependencies:
- stage: base
steps:
- sources:
- url: https://static.rust-lang.org/dist/rust-{{ .rust_version }}-x86_64-unknown-linux-gnu.tar.gz
destination: rust.tar.gz
sha256: "{{ .rust_sha256 }}"
sha512: "{{ .rust_sha512 }}"
prepare:
- |
tar -xf rust.tar.gz --strip-components=1
install:
- |
./install.sh \
--destdir=/rootfs \
--prefix=${TOOLCHAIN}
finalize:
- from: /rootfs
to: /
1 change: 1 addition & 0 deletions tools/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ dependencies:
- stage: protoc-gen-go-grpc
- stage: python3
- stage: rhash
- stage: rust
- stage: sd-boot
- stage: sed
- stage: squashfs-tools
Expand Down

0 comments on commit b677a2b

Please sign in to comment.