Skip to content

Commit

Permalink
Test new arm64 job prior to merging
Browse files Browse the repository at this point in the history
  • Loading branch information
gruuya committed Feb 1, 2024
1 parent dc8b93e commit c464b6a
Showing 1 changed file with 33 additions and 28 deletions.
61 changes: 33 additions & 28 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ on:
# For pushes to main, build binaries and store them as artifacts (also upload Docker images)
# For pushes to main with tags, also make a GitHub release.
push:
branches:
- main
tags:
- "v*"
# branches:
# - main
# tags:
# - "v*"

jobs:
build_binary:
Expand Down Expand Up @@ -42,7 +42,12 @@ jobs:
curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v21.4/$PROTO_ZIP
unzip $PROTO_ZIP
echo "$HOME/d/protoc/bin" >> $GITHUB_PATH
export PATH=$PATH:$HOME/d/protoc/bin
if [ "${{ matrix.build }}" = "linux-aarch_64" ]; then
export PATH=$PATH:$HOME/d/protoc/bin/protoc
else
export PATH=$PATH:$HOME/d/protoc/bin
fi
if [ "${{ matrix.build }}" = "win64" ]; then
protoc.exe --version
Expand Down Expand Up @@ -129,20 +134,20 @@ jobs:
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Build and push Docker image (Linux only)
if: matrix.build == 'linux-x86_64' || matrix.build == 'linux-aarch_64'
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Upload binaries as artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ env.ARTIFACT }}
path: ${{ env.SOURCE }}
# - name: Build and push Docker image (Linux only)
# if: matrix.build == 'linux-x86_64' || matrix.build == 'linux-aarch_64'
# uses: docker/build-push-action@v5
# with:
# context: .
# push: true
# tags: ${{ steps.meta.outputs.tags }}
# labels: ${{ steps.meta.outputs.labels }}
#
# - name: Upload binaries as artifacts
# uses: actions/upload-artifact@v4
# with:
# name: ${{ env.ARTIFACT }}
# path: ${{ env.SOURCE }}

github_release:
name: Perform GitHub release
Expand Down Expand Up @@ -181,12 +186,12 @@ jobs:
tar -C artifacts/seafowl-nightly-x86_64-apple-darwin -czf seafowl-${{ env.RELEASE_VERSION }}-x86_64-apple-darwin.tar.gz seafowl
cd artifacts/seafowl-nightly-x86_64-pc-windows-msvc && zip -r ../../seafowl-${{ env.RELEASE_VERSION }}-x86_64-pc-windows-msvc.zip seafowl.exe
- name: Upload release archive
uses: softprops/action-gh-release@v1
with:
files: |
seafowl-${{ env.RELEASE_VERSION }}-x86_64-unknown-linux-gnu.tar.gz
seafowl-${{ env.RELEASE_VERSION }}-aarch_64-unknown-linux-gnu.tar.gz
seafowl-${{ env.RELEASE_VERSION }}-x86_64-apple-darwin.tar.gz
seafowl-${{ env.RELEASE_VERSION }}-x86_64-pc-windows-msvc.zip
body_path: notes-${{ env.RELEASE_VERSION }}.md
# - name: Upload release archive
# uses: softprops/action-gh-release@v1
# with:
# files: |
# seafowl-${{ env.RELEASE_VERSION }}-x86_64-unknown-linux-gnu.tar.gz
# seafowl-${{ env.RELEASE_VERSION }}-aarch_64-unknown-linux-gnu.tar.gz
# seafowl-${{ env.RELEASE_VERSION }}-x86_64-apple-darwin.tar.gz
# seafowl-${{ env.RELEASE_VERSION }}-x86_64-pc-windows-msvc.zip
# body_path: notes-${{ env.RELEASE_VERSION }}.md

0 comments on commit c464b6a

Please sign in to comment.