Skip to content

Commit

Permalink
[Fix] (CICD) : bad package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Saverio976 committed May 14, 2023
1 parent 606f78c commit df24994
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,40 @@ jobs:
uses: actions/checkout@v3

- name: Install dependencies
run: sudo apt-get install -y cmake make g++ tar gzip
run: sudo dnf install -y tar gzip libconfig-devel libconfig

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Release

- name: Build
run: cmake --build ${{github.workspace}}/build --config Release

- name: Package to archive
- name: Package to archive (binary)
run: |
mkdir raytracer-bin
cp raytracer raytracer-bin/raytracer
cp -r plugins raytracer-bin/
tar -czf raytracer.tar.gz raytracer-bin -I 'gzip -9'
- name: Upload to release
- name: Upload to release (binary)
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "raytracer.tar.gz"
tag: ${{ github.ref }}
overwrite: true

- name: Package to archive (examples)
run: |
mkdir raytracer-examples
cp scenes/**/*.yaax scenes/*.yaax raytracer-examples/
find raytracer-examples -name '*.yaax' -type f -print -exec ./raytracer --scene-path {} --output-path {} \;
tar -czf raytracer-examples.tar.gz raytracer-examples -I 'gzip -9'
- name: Upload to release (examples)
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "raytracer-examples.tar.gz"
tag: ${{ github.ref }}
overwrite: true

0 comments on commit df24994

Please sign in to comment.