-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
921646d
commit bbc6cdf
Showing
2 changed files
with
45 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build latest (solaris) | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.ref }}-solaris | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/cross-rs/sparcv9-sun-solaris | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Compile illumos builds | ||
id: compile | ||
shell: bash | ||
env: | ||
COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn" | ||
PLAT64_FLAGS: "-fno-pie -fvisibility=hidden -fcf-protection=none -rdynamic -DCC_BUILD_ICON -Wl,--unresolved-symbols=ignore-in-shared-libs" | ||
run: | | ||
LATEST_FLAG=-DCC_COMMIT_SHA=\"${GITHUB_SHA::9}\" | ||
echo $LATEST_FLAG | ||
cd src | ||
sparcv9-sun-solaris-gcc *.c ${{ env.COMMON_FLAGS }} ${{ env.PLAT64_FLAGS }} $LATEST_FLAG -o cc-illumos64-gl1 -lsocket -lX11 -lXi -lGL | ||
- uses: ./.github/actions/notify_failure | ||
if: ${{ always() && steps.compile.outcome == 'failure' }} | ||
with: | ||
NOTIFY_MESSAGE: 'Failed to compile illumos build(s)' | ||
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' | ||
|
||
|
||
- uses: ./.github/actions/upload_build | ||
if: ${{ always() && steps.compile.outcome == 'success' }} | ||
with: | ||
SOURCE_FILE: 'src/cc-illumos64-gl1' | ||
DEST_NAME: 'ClassiCube-illumos-64' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters