Skip to content

Commit b677a2b

Browse files
casdrfrezbo
authored andcommitted
feat: add rust build stage
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>
1 parent 1659d82 commit b677a2b

6 files changed

Lines changed: 33 additions & 6 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2023-11-27T19:06:58Z by kres latest.
3+
# Generated on 2024-01-15T15:10:45Z by kres latest.
44

55
name: default
66
concurrency:
@@ -33,7 +33,7 @@ jobs:
3333
labels: ${{ steps.retrieve-pr-labels.outputs.result }}
3434
services:
3535
buildkitd:
36-
image: moby/buildkit:v0.12.3
36+
image: moby/buildkit:v0.12.4
3737
options: --privileged
3838
ports:
3939
- 1234:1234
@@ -70,11 +70,12 @@ jobs:
7070
make PUSH=true
7171
- name: Retrieve PR labels
7272
id: retrieve-pr-labels
73-
if: github.event_name == 'pull_request' && always()
7473
uses: actions/github-script@v6
7574
with:
7675
retries: "3"
7776
script: |
77+
if (context.eventName != "pull_request") { return "[]" }
78+
7879
const resp = await github.rest.issues.get({
7980
issue_number: context.issue.number,
8081
owner: context.repo.owner,
@@ -101,7 +102,7 @@ jobs:
101102
- default
102103
services:
103104
buildkitd:
104-
image: moby/buildkit:v0.12.3
105+
image: moby/buildkit:v0.12.4
105106
options: --privileged
106107
ports:
107108
- 1234:1234

.github/workflows/weekly.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2023-11-27T19:06:58Z by kres latest.
3+
# Generated on 2024-01-15T15:10:45Z by kres latest.
44

55
name: weekly
66
concurrency:
@@ -16,7 +16,7 @@ jobs:
1616
- pkgs
1717
services:
1818
buildkitd:
19-
image: moby/buildkit:v0.12.3
19+
image: moby/buildkit:v0.12.4
2020
options: --privileged
2121
ports:
2222
- 1234:1234

Pkgfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,11 @@ vars:
299299
rhash_sha256: 8e7d1a8ccac0143c8fe9b68ebac67d485df119ea17a613f4038cda52f84ef52a
300300
rhash_sha512: 00a7e5e058b53ce20ae79509815452ed9cb699d1322b678220b72c61dea3ea2f8fa131acfade8bb6d9f6af913f0c3c472330841181b22314b8755166310c946f
301301

302+
# renovate: datasource=github-tags depName=rust-lang/rust
303+
rust_version: 1.75.0
304+
rust_sha256: 473978b6f8ff216389f9e89315211c6b683cf95a966196e7914b46e8cf0d74f6
305+
rust_sha512: fdb0642e93915c150dd352c1c49fda275f61e78a91a6ff7403bd275fceb86563403055c00a0c745911bc9e17656e80034d257274ad3d306b1f3314ec1c541dcb
306+
302307
# renovate: datasource=git-tags extractVersion=^v(?<version>.*)$ depName=git://git.savannah.gnu.org/sed.git
303308
sed_version: 4.9
304309
sed_sha256: 6e226b732e1cd739464ad6862bd1a1aba42d7982922da7a53519631d24975181

deps.png

-57.9 KB
Loading

rust/pkg.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: rust
2+
dependencies:
3+
- stage: base
4+
steps:
5+
- sources:
6+
- url: https://static.rust-lang.org/dist/rust-{{ .rust_version }}-x86_64-unknown-linux-gnu.tar.gz
7+
destination: rust.tar.gz
8+
sha256: "{{ .rust_sha256 }}"
9+
sha512: "{{ .rust_sha512 }}"
10+
prepare:
11+
- |
12+
tar -xf rust.tar.gz --strip-components=1
13+
install:
14+
- |
15+
./install.sh \
16+
--destdir=/rootfs \
17+
--prefix=${TOOLCHAIN}
18+
finalize:
19+
- from: /rootfs
20+
to: /

tools/pkg.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ dependencies:
6464
- stage: protoc-gen-go-grpc
6565
- stage: python3
6666
- stage: rhash
67+
- stage: rust
6768
- stage: sd-boot
6869
- stage: sed
6970
- stage: squashfs-tools

0 commit comments

Comments
 (0)