diff --git a/.github/actions/install-dependencies/action.yml b/.github/actions/install-dependencies/action.yml new file mode 100644 index 0000000..bfab492 --- /dev/null +++ b/.github/actions/install-dependencies/action.yml @@ -0,0 +1,13 @@ +name: 'Install Dependencies' +description: 'Install required dependencies in container' + +runs: + using: 'composite' + steps: + - name: Install dependencies + shell: bash + run: | + echo $PWD + echo "Installing dependencies..." + echo "Updating package list..." > test.txt + dnf install -y make gcc-c++ clang clang-tools-extra cmake3 git rpm-build fuse3-devel diff --git a/.github/workflows/atomic-commits.yml b/.github/workflows/atomic-commits.yml index 254444f..14bade2 100644 --- a/.github/workflows/atomic-commits.yml +++ b/.github/workflows/atomic-commits.yml @@ -7,17 +7,20 @@ jobs: runs-on: ubuntu-latest container: oraclelinux:9 steps: - - name: Install dependencies - run: | - dnf install -y make gcc-c++ cmake3 git rpm-build fuse3-devel - name: Check out repository code uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Install dependencies + uses: ./github/actions/install-dependencies + - name: test + run: | + cat test.txt - name: Mark github workspace as safe run: git config --system --add safe.directory $PWD - name: List commits and run make for each run: | + git rev-list --reverse ${{ github.event.pull_request.head.sha }}..HEAD git rev-list --reverse ${{ github.event.pull_request.base.sha }}..HEAD | while read commit; do git checkout $commit make