Commit dfe9ae81 authored by NoisyCoil's avatar NoisyCoil Committed by NoisyCoil
Browse files

Support building go and the go projects natively on linux-aarch64

parent 23008e77
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -22,5 +22,15 @@ steps:
          sha256sum: d43631d17d8b6f78152bb4341f867bb22ad4444fec5573be1d34dac968202cda
        target_replace:
          '^torbrowser-(?!testbuild).*': 'torbrowser-linux-x86_64'
          'linux-cross': ''
        enable: '[% ! c("var/linux-aarch64") || c("var/linux-cross") %]'
      - name: go_vendor
        pkg_type: go_vendor
        project: conjure
        norec:
          sha256sum: d43631d17d8b6f78152bb4341f867bb22ad4444fec5573be1d34dac968202cda
        target_replace:
          '^torbrowser-(?!testbuild).*': 'torbrowser-linux-aarch64'
        enable: '[% c("var/linux-aarch64") && ! c("var/linux-cross") %]'
      - name: go-licenses
        project: go-licenses
+5 −0
Original line number Diff line number Diff line
@@ -12,3 +12,8 @@ input_files:
    # Make sure we can reproduce the official binaries before updating.
    # Check README.md for more information before updating this hash.
    sha256sum: 9379441ea310de000f33a4dc767bd966e72ab2826270e038e78b2c53c2e7802d
    enable: '[% ! c("var/linux-aarch64") || c("var/linux-cross") %]'
  - URL: 'https://go.dev/dl/go[% c("version") %].linux-arm64.tar.gz'
    name: go
    sha256sum: 561c780e8f4a8955d32bf72e46af0b5ee5e0debe1e4633df9a03781878219202
    enable: '[% c("var/linux-aarch64") && ! c("var/linux-cross") %]'
+10 −0
Original line number Diff line number Diff line
@@ -25,3 +25,13 @@ steps:
          sha256sum: b3799f5445ce9f1d48893227287846c689ab67bbdc76b607d5d228739b5c19a2
        target_replace:
          '^torbrowser-(?!testbuild).*': 'torbrowser-linux-x86_64'
          'linux-cross': ''
        enable: '[% ! c("var/linux-aarch64") || c("var/linux-cross") %]'
      - name: go_vendor
        pkg_type: go_vendor
        project: go-licenses
        norec:
          sha256sum: b3799f5445ce9f1d48893227287846c689ab67bbdc76b607d5d228739b5c19a2
        target_replace:
          '^torbrowser-(?!testbuild).*': 'torbrowser-linux-aarch64'
        enable: '[% c("var/linux-aarch64") && ! c("var/linux-cross") %]'
+10 −1
Original line number Diff line number Diff line
@@ -7,12 +7,13 @@ container:
var:
  source_sha256: ffdf97766a4c4b135cd53809713978e9ee1a943b2c8e28ad221a5429de30e210
  no_crosscompile: 1
  GOHOSTARCH: amd64
  setup: |
    mkdir -p /var/tmp/dist
    tar -C /var/tmp/dist -xf $rootdir/[% c("go_tarfile") %]
    [% IF pc(c("origin_project"), "var/no_crosscompile") -%]
      export GOOS=linux
      export GOARCH=amd64
      export GOARCH=[% c("var/GOHOSTARCH") %]
    [% ELSE -%]
      export GOOS=[% c("var/GOOS") %]
      export GOARCH=[% c("var/GOARCH") %]
@@ -65,6 +66,7 @@ targets:
  linux-aarch64:
    var:
      GOARCH: arm64
      GOHOSTARCH: '[% IF c("var/linux-cross") %]amd64[% ELSE %]arm64[% END %]'
  linux-arm:
    var:
      GOARCH: arm
@@ -96,3 +98,10 @@ input_files:
    name: go-bootstrap
    target_replace:
      '^.*browser-(?!testbuild).*': 'basebrowser-linux-x86_64'
      'linux-cross': ''
    enable: '[% ! c("var/linux-aarch64") || c("var/linux-cross") %]'
  - project: go-bootstrap
    name: go-bootstrap
    target_replace:
      '^.*browser-(?!testbuild).*': 'basebrowser-linux-aarch64'
    enable: '[% c("var/linux-aarch64") &&  ! c("var/linux-cross") %]'
+10 −0
Original line number Diff line number Diff line
@@ -36,5 +36,15 @@ steps:
          sha256sum: '[% c("var/go_vendor_sha256sum") %]'
        target_replace:
          '^torbrowser-(?!testbuild).*': 'torbrowser-linux-x86_64'
          'linux-cross': ''
        enable: '[% ! c("var/linux-aarch64") || c("var/linux-cross") %]'
      - name: go_vendor
        pkg_type: go_vendor
        project: lyrebird
        norec:
          sha256sum: '[% c("var/go_vendor_sha256sum") %]'
        target_replace:
          '^torbrowser-(?!testbuild).*': 'torbrowser-linux-aarch64'
        enable: '[% c("var/linux-aarch64") && ! c("var/linux-cross") %]'
      - name: go-licenses
        project: go-licenses