From 291fc1ed75bcb2155ac610ad7ad3f934d9bef7b9 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Mon, 17 Jul 2023 14:25:26 +0200 Subject: [PATCH 1/3] linux arm64 nightly workflow --- .github/workflows/nightly_linux_arm64.yml | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/nightly_linux_arm64.yml diff --git a/.github/workflows/nightly_linux_arm64.yml b/.github/workflows/nightly_linux_arm64.yml new file mode 100644 index 00000000000..43cc67ef743 --- /dev/null +++ b/.github/workflows/nightly_linux_arm64.yml @@ -0,0 +1,47 @@ +on: + pull_request: + workflow_dispatch: + schedule: + - cron: '0 9 * * *' + +name: Nightly Release Linux arm64/aarch64 + +jobs: + build: + name: build and package nightly release + runs-on: [self-hosted, pi-4-8GB-aarch64] + timeout-minutes: 90 + steps: + - uses: actions/checkout@v3 + + - name: create version.txt + run: ./ci/write_version.sh + + - name: build release with lto + run: cargo build --profile=release-with-lto --locked --bin roc + + - name: get commit SHA + run: echo "SHA=$(git rev-parse --short "$GITHUB_SHA")" >> $GITHUB_ENV + + - name: get date + run: echo "DATE=$(date "+%Y-%m-%d")" >> $GITHUB_ENV + + - name: build file name + env: + DATE: ${{ env.DATE }} + SHA: ${{ env.SHA }} + run: echo "RELEASE_FOLDER_NAME=roc_nightly-linux_arm64-$DATE-$SHA" >> $GITHUB_ENV + + # this makes the roc binary a lot smaller + - name: strip debug info + run: strip ./target/release-with-lto/roc + + - name: Make nightly release tar archive + run: ./ci/package_release.sh ${{ env.RELEASE_FOLDER_NAME }} + + - name: Upload roc nightly tar. Actually uploading to github releases has to be done manually. + uses: actions/upload-artifact@v3 + with: + name: ${{ env.RELEASE_FOLDER_NAME }}.tar.gz + path: ${{ env.RELEASE_FOLDER_NAME }}.tar.gz + retention-days: 4 From 83f4bec54dfcb2687dac03a9db9205726e457e1a Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Mon, 17 Jul 2023 15:45:51 +0200 Subject: [PATCH 2/3] try different runner labels Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nightly_linux_arm64.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly_linux_arm64.yml b/.github/workflows/nightly_linux_arm64.yml index 43cc67ef743..4a266506e38 100644 --- a/.github/workflows/nightly_linux_arm64.yml +++ b/.github/workflows/nightly_linux_arm64.yml @@ -9,7 +9,7 @@ name: Nightly Release Linux arm64/aarch64 jobs: build: name: build and package nightly release - runs-on: [self-hosted, pi-4-8GB-aarch64] + runs-on: [self-hosted, Linux, ARM64] timeout-minutes: 90 steps: - uses: actions/checkout@v3 From da37d30a36ab1691bddcbf4923df1fdddcaddbb7 Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Mon, 17 Jul 2023 16:35:59 +0200 Subject: [PATCH 3/3] remove PR trigger Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- .github/workflows/nightly_linux_arm64.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/nightly_linux_arm64.yml b/.github/workflows/nightly_linux_arm64.yml index 4a266506e38..a0d8825b232 100644 --- a/.github/workflows/nightly_linux_arm64.yml +++ b/.github/workflows/nightly_linux_arm64.yml @@ -1,5 +1,4 @@ on: - pull_request: workflow_dispatch: schedule: - cron: '0 9 * * *'