From 0da89f43fd2fda9fb445896d0cdb780e49acb364 Mon Sep 17 00:00:00 2001 From: Andy Gocke Date: Mon, 3 Jul 2023 22:39:15 -0700 Subject: [PATCH 01/17] Add linux-arm64 build --- .github/workflows/publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1d62123..e3f8a61 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,8 @@ on: push: branches: [ "main" ] tags: [ "*" ] + pull_request: + branches: [ "main" ] permissions: contents: write @@ -16,6 +18,9 @@ jobs: - os: ubuntu-latest rid: linux-x64 zipSuffix: tar.gz + - os: ubuntu-latest + rid: linux-arm64 + zipSuffix: tar.gz - os: windows-latest rid: win-x64 zipSuffix: zip From 307cbaf2eb1f2ca6e0fe21af2d84678e14a90b9d Mon Sep 17 00:00:00 2001 From: Andy Gocke Date: Sun, 16 Jul 2023 23:17:17 -0700 Subject: [PATCH 02/17] Add apt install --- .github/workflows/publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e3f8a61..6a4461d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,6 +32,9 @@ jobs: zipSuffix: tar.gz runs-on: ${{ matrix.os }} steps: + - name: Install linux arm64 prereqs + if: matrix.rid == 'linux-arm64' + run: sudo apt install -y binutils-aarch64-linux-gnu - uses: actions/checkout@v3 with: fetch-depth: 0 From 4d04ab20e0550ca3e9c8a659be211dad71b5cf09 Mon Sep 17 00:00:00 2001 From: Andy Gocke Date: Sun, 16 Jul 2023 23:23:39 -0700 Subject: [PATCH 03/17] Add gcc libs --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6a4461d..cc376fc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,7 +34,7 @@ jobs: steps: - name: Install linux arm64 prereqs if: matrix.rid == 'linux-arm64' - run: sudo apt install -y binutils-aarch64-linux-gnu + run: sudo apt install -y binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu - uses: actions/checkout@v3 with: fetch-depth: 0 From ae41602518b51f07586108c61643203f3148fe0c Mon Sep 17 00:00:00 2001 From: Andy Gocke Date: Sun, 16 Jul 2023 23:35:42 -0700 Subject: [PATCH 04/17] Add arm64 to package list --- .github/workflows/publish.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cc376fc..aac5b43 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -34,7 +34,16 @@ jobs: steps: - name: Install linux arm64 prereqs if: matrix.rid == 'linux-arm64' - run: sudo apt install -y binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu + run: | + sudo dpkg --add-architecture arm64 + cat > /etc/apt/sources.list.d/arm64.list < Date: Sun, 16 Jul 2023 23:37:05 -0700 Subject: [PATCH 05/17] Give cat sudo --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aac5b43..72b4a5d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,7 +36,7 @@ jobs: if: matrix.rid == 'linux-arm64' run: | sudo dpkg --add-architecture arm64 - cat > /etc/apt/sources.list.d/arm64.list < /etc/apt/sources.list.d/arm64.list < Date: Sun, 16 Jul 2023 23:38:03 -0700 Subject: [PATCH 06/17] list sources.list.d --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 72b4a5d..b120232 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,6 +36,7 @@ jobs: if: matrix.rid == 'linux-arm64' run: | sudo dpkg --add-architecture arm64 + ls /etc/apt/sources.list.d sudo cat > /etc/apt/sources.list.d/arm64.list < Date: Sun, 16 Jul 2023 23:39:47 -0700 Subject: [PATCH 07/17] mkdir --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b120232..b731913 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,7 +36,7 @@ jobs: if: matrix.rid == 'linux-arm64' run: | sudo dpkg --add-architecture arm64 - ls /etc/apt/sources.list.d + sudo mdkir -p /etc/apt/sources.list.d sudo cat > /etc/apt/sources.list.d/arm64.list < Date: Sun, 16 Jul 2023 23:40:33 -0700 Subject: [PATCH 08/17] typo --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b731913..5154c29 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,7 +36,7 @@ jobs: if: matrix.rid == 'linux-arm64' run: | sudo dpkg --add-architecture arm64 - sudo mdkir -p /etc/apt/sources.list.d + sudo mkdir -p /etc/apt/sources.list.d sudo cat > /etc/apt/sources.list.d/arm64.list < Date: Sun, 16 Jul 2023 23:42:24 -0700 Subject: [PATCH 09/17] use su --- .github/workflows/publish.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5154c29..5c577bd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,16 +35,17 @@ jobs: - name: Install linux arm64 prereqs if: matrix.rid == 'linux-arm64' run: | - sudo dpkg --add-architecture arm64 - sudo mkdir -p /etc/apt/sources.list.d - sudo cat > /etc/apt/sources.list.d/arm64.list < /etc/apt/sources.list.d/arm64.list < Date: Sun, 16 Jul 2023 23:43:25 -0700 Subject: [PATCH 10/17] Remove mkdir --- .github/workflows/publish.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5c577bd..8341bf7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,7 +37,6 @@ jobs: run: | sudo su - dpkg --add-architecture arm64 - mkdir -p /etc/apt/sources.list.d cat > /etc/apt/sources.list.d/arm64.list < Date: Sun, 16 Jul 2023 23:48:52 -0700 Subject: [PATCH 11/17] Go back to sudo --- .github/workflows/publish.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8341bf7..7767c3f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,16 +35,15 @@ jobs: - name: Install linux arm64 prereqs if: matrix.rid == 'linux-arm64' run: | - sudo su - - dpkg --add-architecture arm64 - cat > /etc/apt/sources.list.d/arm64.list < /etc/apt/sources.list.d/arm64.list < Date: Sun, 16 Jul 2023 23:49:19 -0700 Subject: [PATCH 12/17] Forgot to -c --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7767c3f..7272be4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,7 +36,7 @@ jobs: if: matrix.rid == 'linux-arm64' run: | sudo dpkg --add-architecture arm64 - sudo bash 'cat > /etc/apt/sources.list.d/arm64.list < /etc/apt/sources.list.d/arm64.list < Date: Sun, 16 Jul 2023 23:53:54 -0700 Subject: [PATCH 13/17] Use ports --- .github/workflows/publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7272be4..86c9e0a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,10 +37,10 @@ jobs: run: | sudo dpkg --add-architecture arm64 sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list < Date: Sun, 16 Jul 2023 23:56:26 -0700 Subject: [PATCH 14/17] Remove security link --- .github/workflows/publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 86c9e0a..be6f517 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -37,8 +37,8 @@ jobs: run: | sudo dpkg --add-architecture arm64 sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list < Date: Mon, 17 Jul 2023 00:04:33 -0700 Subject: [PATCH 15/17] Mark existing sources as amd64 --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index be6f517..2ad727a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -39,9 +39,9 @@ jobs: sudo bash -c 'cat > /etc/apt/sources.list.d/arm64.list < Date: Mon, 17 Jul 2023 10:01:25 -0700 Subject: [PATCH 16/17] Use clang --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2ad727a..da85a37 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,7 +43,7 @@ jobs: EOF' sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list sudo apt update - sudo apt install -y binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64 + sudo apt install -y clang binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64 - uses: actions/checkout@v3 with: fetch-depth: 0 From 537ef7520eaad3a4dab77360b4d34e77bf87b247 Mon Sep 17 00:00:00 2001 From: Andy Gocke Date: Mon, 17 Jul 2023 10:05:03 -0700 Subject: [PATCH 17/17] Add llvm --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index da85a37..8194171 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,7 +43,7 @@ jobs: EOF' sudo sed -i -e 's/deb http/deb [arch=amd64] http/g' /etc/apt/sources.list sudo apt update - sudo apt install -y clang binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64 + sudo apt install -y clang llvm binutils-aarch64-linux-gnu gcc-aarch64-linux-gnu zlib1g-dev:arm64 - uses: actions/checkout@v3 with: fetch-depth: 0