Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 18 additions & 23 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
echo "BUILD_TAG=$BUILD_TAG" >> $GITHUB_ENV
echo -n $BUILD_TAG > tag
- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: tag
path: tag
Expand All @@ -45,7 +45,7 @@ jobs:
platform: x64
artifact_os: Win64
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7
- name: CMake generate
run: |
mkdir build && cd build
Expand All @@ -59,7 +59,7 @@ jobs:
mv -vb build\${{ matrix.configuration }}\extract-xiso.exe, LICENSE.TXT artifacts
cd artifacts
powershell Compress-Archive . ../extract-xiso-${{ matrix.artifact_os }}_${{ matrix.configuration }}.zip
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: extract-xiso_${{ matrix.artifact_os }}_${{ matrix.configuration }}
path: extract-xiso-${{ matrix.artifact_os }}_${{ matrix.configuration }}.zip
Expand All @@ -68,7 +68,7 @@ jobs:
runs-on: ubuntu-latest
needs: Init
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7
- name: CMake generate
run: |
mkdir build && cd build
Expand All @@ -78,52 +78,47 @@ jobs:
run: cmake --build . -j $(nproc --all)
- name: Prepare artifacts
run: |
mkdir artifacts
mv -v build/extract-xiso LICENSE.TXT artifacts
cd artifacts
zip -r ../extract-xiso_${{ runner.os }}.zip *
- uses: actions/upload-artifact@v4
mkdir extract-xiso_${{ runner.os }}
mv -v build/extract-xiso LICENSE.TXT extract-xiso_${{ runner.os }}
- uses: actions/upload-artifact@v7
with:
name: extract-xiso_${{ runner.os }}
path: extract-xiso_${{ runner.os }}.zip
path: extract-xiso_${{ runner.os }}

build-macos:
runs-on: macos-latest
needs: Init
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v7
- name: CMake generate
run: |
mkdir build && cd build
cmake ..
mkdir build
cmake -B build -DCMAKE_OSX_ARCHITECTURES="arm64;x86_64"
- name: Build
working-directory: build
run: cmake --build . -j $(sysctl -n hw.ncpu)
run: cmake --build build -j $(sysctl -n hw.ncpu)
- name: Prepare artifacts
run: |
mkdir artifacts
mv -v build/extract-xiso LICENSE.TXT artifacts
cd artifacts
zip -r ../extract-xiso_${{ runner.os }}.zip *
- uses: actions/upload-artifact@v4
mkdir extract-xiso_${{ runner.os }}
mv -v build/extract-xiso LICENSE.TXT extract-xiso_${{ runner.os }}
- uses: actions/upload-artifact@v7
with:
name: extract-xiso_${{ runner.os }}
path: extract-xiso_${{ runner.os }}.zip
path: extract-xiso_${{ runner.os }}

Release:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: [build-windows, build-linux, build-macos]
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: dist
- name: Get package info
run: |
echo "BUILD_TAG=$(cat dist/tag/tag)" >> $GITHUB_ENV
- name: Create release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ env.BUILD_TAG }}
name: ${{ env.BUILD_TAG }}
Expand Down