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

Bump Github Actions #172

Merged
merged 3 commits into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
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
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
do-build: ${{ steps.build-cond.outputs.do-build }}
do-release: ${{ github.repository == env.repo_default }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: RadWolfie/Semantic-Version-Action@main
Expand All @@ -49,9 +49,9 @@ jobs:
run: |
if [ "true" == "${{ (github.event_name != 'schedule' && github.event_name != 'workflow_dispatch') || steps.semver-output.outputs.version_previous != steps.semver-output.outputs.version_current }}" ]
then
echo "::set-output name=do-build::true"
echo "do-build=true" >> $GITHUB_OUTPUT
else
echo "::set-output name=do-build::false"
echo "do-build=false" >> $GITHUB_OUTPUT
fi
- name: Generate Changelog
if: steps.build-cond.outputs.do-build == 'true'
Expand All @@ -65,7 +65,7 @@ jobs:
# NOTE: Require to reduce workload from CI service from fetch whole git content.
- name: Upload Changelog
if: steps.build-cond.outputs.do-build == 'true'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: changelog
path: changelog
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
cmake-build-param: -j $(sysctl -n hw.ncpu)
folder: macos
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Generate CMake Files
# NOTES:
# -Werror=dev is used to validate CMakeLists.txt for any faults.
Expand All @@ -125,15 +125,15 @@ jobs:
run: cmake --install build --config ${{ matrix.configuration }} --prefix upload/${{ matrix.folder }}_${{ matrix.arch }}
- name: Upload Build Artifact
if: matrix.configuration == 'Release'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: XbSymbolDatabase
# roughly translate to upload/<platform_arch>/<bin | lib | include>/<anything in here and after>
path: upload/*/*/*
if-no-files-found: error
- name: Upload Misc Artifact
if: matrix.cmake-generator == '-G "Unix Makefiles"' && matrix.configuration == 'Release'
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: XbSymbolDatabase
path: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Labeler
uses: actions/labeler@v3
uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: true

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
# IMPORTANT: Make sure checkout is pulling pull request's merge commit!
ref: 'refs/pull/${{ github.event.number }}/merge'
Expand Down
23 changes: 5 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,30 +21,17 @@ jobs:
if: needs.build.outputs.do-release == 'true'
runs-on: ubuntu-latest
env:
version_current: ${{ needs.build.outputs.ver-cur }}
tag_name: ${{ needs.build.outputs.ver-cur }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Get Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
# NOTE: We're downloading ALL artifacts.
- name: Prepare artifacts for release
run: | # download-artifact doesn't download a zip, so rezip it
7z a -mx1 "XbSymbolDatabase.zip" "./XbSymbolDatabase/*"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GH_REPO: ${{ github.repository }} # https://github.com/cli/cli/issues/3556
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version_current }}
release_name: ${{ env.version_current }}
body_path: changelog/changelog
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: XbSymbolDatabase.zip
asset_name: XbSymbolDatabase.zip
asset_content_type: application/zip
run: gh release create ${{ env.tag_name }} XbSymbolDatabase.zip --notes-file changelog --target $GITHUB_SHA