-
Notifications
You must be signed in to change notification settings - Fork 250
CI: create GitHub Release, multi-platform build, fix linux workflow #842
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
base: dev
Are you sure you want to change the base?
Conversation
.github/workflows/linux.yml
Outdated
| push: | ||
| branches: | ||
| - master | ||
| - prerel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'prerel' branch hasn't been used in years, you can remove this
| - name: Create GitHub Release | ||
| uses: softprops/action-gh-release@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not use a third-party action when gh release create exists. gh is pre-installed in gha runners
.github/workflows/linux.yml
Outdated
| - name: Checkout master on tag push | ||
| if: github.ref_type == 'tag' | ||
| # Checkout only if the tag was pushed to master | ||
| run: '[ "$(git rev-parse HEAD)" = "$(git rev-parse origin/master)" ] && git checkout master || echo False' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the echo?
.github/workflows/linux.yml
Outdated
| # Setup compilation mode and install project dependencies | ||
| # (continue-on-error + timeout is a temporary solution until sentry-native is fixed; shouldn't affect the building step) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this comment outdated now? You fixed the hanging issue, right?
.github/workflows/linux.yml
Outdated
| cp packaged/lib/libSTServer.so ${{ env.STR_BUILD_DIR }}/ || true | ||
| cp packaged/bin/crashpad_handler ${{ env.STR_BUILD_DIR }}/ || true | ||
| cp packaged/bin/SkyrimTogetherServer ${{ env.STR_BUILD_DIR }}/ || true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|| true? I think a job should fail if the file wasn't found during this step
.github/workflows/linux.yml
Outdated
| path: | | ||
| ${{ env.STR_BUILD_DIR }}/libSTServer.so | ||
| ${{ env.STR_BUILD_DIR }}/crashpad_handler | ||
| ${{ env.STR_BUILD_DIR }}/SkyrimTogetherServer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| path: | | |
| ${{ env.STR_BUILD_DIR }}/libSTServer.so | |
| ${{ env.STR_BUILD_DIR }}/crashpad_handler | |
| ${{ env.STR_BUILD_DIR }}/SkyrimTogetherServer | |
| path: ${{ env.STR_BUILD_DIR }} |
|
Thanks for the review. Fixes applied:
GHA test run |
Changes
linux.ymlupload-build-for-next-jobwindows.ymlplayble-buildwindows-playable-build.yml→playable-build.ymlpreparejob for version extraction and conditionsDisable cron startup in forkslinux.ymlrelease-uploadjob on tag pushesNow
--- config: layout: dagre --- flowchart LR Prepare["Prepare job<br>(get version)"] --> CheckFork["Fork + schedule?"] CheckFork -- Yes --> Skip["Skip build"] CheckFork -- No --> Build["Build jobs<br>(Windows + Linux)"] ReleaseCheck["Is tag push?"] -- Yes --> Release["Create GitHub Release"] ReleaseCheck -- No --> n1["Just upload artifact"] Build --> ReleaseCheck n2["Start"] --> Prepare CheckFork@{ shape: rounded} ReleaseCheck@{ shape: terminal} n1@{ shape: rect} n2@{ shape: start} Prepare:::ProcessNode CheckFork:::DecisionNode Skip:::SkipNode Build:::WorkflowNode ReleaseCheck:::DecisionNode Release:::ProcessNode n1:::ProcessNode classDef StartNode stroke-width:2px,stroke:#4CAF50,fill:#E8F5E9,color:#2E7D32 classDef EndNode stroke-width:2px,stroke:#F44336,fill:#FFEBEE,color:#C62828 classDef DecisionNode stroke-width:2px,stroke:#FF9800,fill:#FFF3E0,color:#E65100 classDef ProcessNode stroke-width:2px,stroke:#2196F3,fill:#E3F2FD,color:#1565C0 classDef WorkflowNode stroke-width:2px,stroke:#9C27B0,fill:#F3E5F5,color:#6A1B9A classDef ArtifactNode stroke-width:2px,stroke:#00BCD4,fill:#E0F7FA,color:#00838F classDef SkipNode stroke-width:2px,stroke:#9E9E9E,fill:#FAFAFA,color:#424242Pre-merge
Test tag v9.9.9, New test tag v9.9.8windows-playable-build.ymltoplayable-build.ymlREADMEbadge linkGHA test run