Commit 99ac1364 authored by boklm's avatar boklm Committed by Richard Pospesel
Browse files

Bug 29815: Add rcodesign build

parent 5dc73a09
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -631,6 +631,20 @@ go_vendor-lyrebird-nightly: submodule-update
	$(rbm) build lyrebird --step go_vendor --target nightly --target torbrowser-linux-x86_64


#############
# rcodesign #
#############

rcodesign: submodule-update
	$(rbm) build --target release --target torbrowser-linux-x86_64 rcodesign

rcodesign-filename: submodule-update
	$(rbm) showconf --target release --target torbrowser-linux-x86_64 rcodesign filename

cargo_vendor-rcodesign: submodule-update
	$(rbm) build rcodesign --step cargo_vendor --target release --target torbrowser-linux-x86_64


##################
# Common Targets #
##################
+37 −0
Original line number Diff line number Diff line
#!/bin/bash
[% c("var/set_default_env") -%]
distdir=/var/tmp/dist/[% project %]
builddir=/var/tmp/build/[% project %]-[% c('version') %]
mkdir -p $distdir $builddir

tar -C /var/tmp/dist -xf $rootdir/[% c('input_files_by_name/rust') %]
export PATH=/var/tmp/dist/rust/bin:$PATH
cd $rootdir

tar -C /var/tmp/build -xf [% project %]-[% c('version') %].tar.[% c('compress_tar') %]
tar -C $builddir -xf $rootdir/[% c('input_files_by_name/cargo_vendor') %]

cd $builddir
mkdir .cargo
cat >> .cargo/config << 'EOF'

[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "/var/tmp/build/[% project %]-[% c('version') %]/vendor"

[net]
offline=true
EOF

cd apple-codesign
cargo build --release
cd ..
cp target/release/rcodesign $distdir

cd /var/tmp/dist
[% c('tar', {
  tar_src => [ project ],
  tar_args => '-caf ' _ dest_dir _ '/' _ c('filename'),
}) %]
+19 −0
Original line number Diff line number Diff line
# vim: filetype=yaml sw=2
version: 0.22.0
git_hash: cb406b5feb1439131f36ec60375f607a7f82439d
git_url: https://github.com/indygreg/apple-platform-rs.git
container:
  use_container: 1

steps:
  build:
    filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.[% c("compress_tar") %]'
    input_files:
      - project: container-image
      - project: rust
        name: rust
      - name: cargo_vendor
        project: rcodesign
        pkg_type: cargo_vendor
        norec:
          sha256sum: 04c21203d2948ebfa59f1039d4481e419e656ec636293b4846fdb7868cfd98f0