Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add packaging for AL2 #357

Closed
wants to merge 17 commits into from
2 changes: 1 addition & 1 deletion .github/actions/setup-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ runs:
steps:
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
components: clippy rustfmt
22 changes: 18 additions & 4 deletions .github/workflows/package-rpm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,31 @@ jobs:
matrix:
# minimum kernel version is 5.5
include:
- { distro: amazonlinux, version: 2, arch: x86_64 }
- { distro: amazonlinux, version: 2, arch: arm64 }

- { distro: rockylinux, version: 9, arch: x86_64 }
- { distro: rockylinux, version: 9, arch: arm64 }

fail-fast: false
steps:
- name: install node (AmazonLinux2)
if: ${{ (matrix.distro == 'amazonlinux') && (matrix.version == 2) }}
shell: bash
run: |
yum install -y python3 gcc10 gcc10-c++ tar gzip binutils
export CC=gcc10-cc
export CXX=gcc10-g++
curl -O -L https://nodejs.org/dist/v20.18.0/node-v20.18.0.tar.gz
tar xzf node-v20.18.0.tar.gz
cd node-v20.18.0
./configure
make
make install

- uses: actions/checkout@v4

- name: install rust
run: |
curl -sSf https://sh.rustup.rs | sh /dev/stdin -y
echo "PATH=$HOME/.cargo/bin:$PATH" >> "$GITHUB_ENV"
- uses: ./.github/actions/setup-rust

- name: install build dependencies
shell: bash
Expand Down
Loading