Skip to content

Commit

Permalink
Solaris test
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownShadow200 committed Jun 26, 2024
1 parent 921646d commit bbc6cdf
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 47 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build_solaris.yml
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'
47 changes: 0 additions & 47 deletions misc/linux/min-xutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,53 +100,6 @@ typedef struct {
/* obsolete */
#define PAllHints (PPosition|PSize|PMinSize|PMaxSize|PResizeInc|PAspect)



typedef struct {
long flags; /* marks which fields in this structure are defined */
Bool input; /* does this application rely on the window manager to
get keyboard input? */
int initial_state; /* see below */
Pixmap icon_pixmap; /* pixmap to be used as icon */
Window icon_window; /* window to be used as icon */
int icon_x, icon_y; /* initial position of icon */
Pixmap icon_mask; /* icon mask bitmap */
XID window_group; /* id of related window group */
/* this structure may be extended in the future */
} XWMHints;

/* definition for flags of XWMHints */

#define InputHint (1L << 0)
#define StateHint (1L << 1)
#define IconPixmapHint (1L << 2)
#define IconWindowHint (1L << 3)
#define IconPositionHint (1L << 4)
#define IconMaskHint (1L << 5)
#define WindowGroupHint (1L << 6)
#define AllHints (InputHint|StateHint|IconPixmapHint|IconWindowHint| \
IconPositionHint|IconMaskHint|WindowGroupHint)
#define XUrgencyHint (1L << 8)

/* definitions for initial window state */
#define WithdrawnState 0 /* for windows that are not mapped */
#define NormalState 1 /* most applications want to start this way */
#define IconicState 3 /* application wants to start as an icon */

/*
* Obsolete states no longer defined by ICCCM
*/
#define DontCareState 0 /* don't know or care */
#define ZoomState 2 /* application wants to start zoomed */
#define InactiveState 4 /* application believes it is seldom used; */
/* some wm's may put it on inactive menu */

typedef struct {
int min_width, min_height;
int max_width, max_height;
int width_inc, height_inc;
} XIconSize;

typedef struct {
char *res_name;
char *res_class;
Expand Down

0 comments on commit bbc6cdf

Please sign in to comment.