diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 622319ee3..19d279c5e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: @@ -49,10 +59,6 @@ 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: @@ -60,5 +66,3 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} checksum: sha512 asset: LICENSE - -