Skip to content

Commit 0bdbb43

Browse files
author
KDr2
committed
memlayout workflow
1 parent 82de1b0 commit 0bdbb43

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: MemLayout Info Generating
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
jobs:
8+
test:
9+
runs-on: ${{ matrix.os }}
10+
continue-on-error: true
11+
strategy:
12+
matrix:
13+
version:
14+
- '1.3.1'
15+
- '1.4.2'
16+
- '1.5.3'
17+
- '1.5.4'
18+
- '1.6.1'
19+
os:
20+
- ubuntu-latest
21+
- windows-latest
22+
- macOS-latest
23+
arch:
24+
- x64
25+
- x86
26+
exclude:
27+
- os: macOS-latest
28+
arch: x86
29+
steps:
30+
- name: Set up MinGW
31+
uses: egor-tensin/setup-mingw@v2
32+
with:
33+
platform: i686
34+
cc: 1
35+
if: ${{ matrix.os == 'windows-latest' && matrix.arch == 'x86' }}
36+
- uses: actions/checkout@v2
37+
- uses: julia-actions/setup-julia@v1
38+
with:
39+
version: ${{ matrix.version }}
40+
arch: ${{ matrix.arch }}
41+
- run: julia .github/workflows/memlayout.jl
File renamed without changes.

.github/workflows/memlayout.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
const PROJECT_DIR = (@__DIR__) |> dirname |> dirname
2+
const INCLUDE = joinpath(dirname(Sys.BINDIR), "include/julia")
3+
const OPTIONS = if string(Sys.ARCH)[1] == 'i'
4+
Sys.islinux() && run(`sudo apt-get install g++-multilib -y`)
5+
["-std=c++11","-march=pentium4", "-m32", "-static-libgcc", "-static-libstdc++"]
6+
else
7+
["-std=c++11"]
8+
end
9+
10+
run(`g++ $(OPTIONS) -I$(INCLUDE) $(PROJECT_DIR)/.github/workflows/memlayout.cpp -o memlayout`)
11+
run(`./memlayout`)

0 commit comments

Comments
 (0)