Skip to content

Commit

Permalink
Compiling software binary in AL2 container
Browse files Browse the repository at this point in the history
Signed-off-by: Yaosheng Zhang <zyaoshen@amazon.com>
  • Loading branch information
Yaosheng Zhang committed Jul 16, 2023
1 parent 3a1db05 commit 26e51d3
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,40 @@ jobs:
- uses: actions/checkout@v3
- uses: taiki-e/create-gh-release-action@v1
with:
prefix: mountpoint-s3(-[a-z]+)?
prefix: mountpoint-s3
draft: true
# TODO: set it true after we have changlog template reviewed.
changelog: false
# TODO: set it false after we have changlog template reviewed.
allow-missing-changelog: true
branch: main
# branch: main
title: "Mountpoint for Amazon S3 v$version"
token: ${{ secrets.GITHUB_TOKEN }}

upload-assets:
name: Build and release on target ${{ matrix.runner.target}}
runs-on: ${{ matrix.runner.tags }}
container: public.ecr.aws/amazonlinux/amazonlinux:2

strategy:
fail-fast: false
matrix:
runner:
- tags: [ubuntu-20.04] # GitHub-hosted
target: x86_64-unknown-linux-gnu
- tags: ubuntu-latest
target: x86_64
- tags: [self-hosted, linux, arm64]
target: aarch64-unknown-linux-gnu
target: arm64

steps:
- name: Install dependencies
run: |
yum update
yum -y install yum-utils tar git jq make cmake3 clang-devel pkg-config fuse fuse-devel llvm-devel libunwind-devel
type -p yum-config-manager >/dev/null
yum-config-manager -y --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
yum -y install gh
yum -t update gh
git config --system --add safe.directory '*'
- name: Checkout source code
uses: actions/checkout@v3
with:
Expand All @@ -49,16 +59,10 @@ jobs:
with:
toolchain: stable
override: true
- name: Install operating system dependencies
uses: ./.github/actions/install-dependencies
with:
fuseVersion: 2
- name: Release mount-s3 binary
uses: taiki-e/upload-rust-binary-action@v1
with:
bin: mount-s3
token: ${{ secrets.GITHUB_TOKEN }}
checksum: sha512
asset: LICENSE


0 comments on commit 26e51d3

Please sign in to comment.