Skip to content
Open
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
62 changes: 62 additions & 0 deletions .github/workflows/dlfcn_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: dlfcn-install

on:
workflow_dispatch:

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
matrix:
include:
- os: windows-latest
python-version: "3.10"
fail-fast: false
steps:
# - uses: actions/checkout@master
# with:
# name: dlfcn-win32/dlfcn-win32
# ref: refs/heads/release

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- uses: awvwgk/setup-fortran@main
id: setup-fortran
with:
compiler: gcc
version: 11

- run: gcc -v -o hello.exe hello.c

- run: |
curl -LJO https://github.com/dlfcn-win32/dlfcn-win32/archive/refs/heads/master.zip
unzip dlfcn-win32-master.zip
python -m pip install --upgrade pip
python -m pip install cmake
- run: >
cmake -S ./dlfcn-win32-master -B ./build_dlfcn -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX="/c/ProgramData/Chocolatey/lib/mingw/tools/install/mingw64"
- run: |
cmake --build ./build_dlfcn
cmake --install ./build_dlfcn

# - uses: actions/checkout@v3
# with:
# submodules: true

# - uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - uses: awvwgk/setup-fortran@main
# id: setup-fortran
# with:
# compiler: gcc
# version: 11
# - run: python -m pip install --upgrade pip
# - run: python -m pip install cmake
# - run: curl -L


7 changes: 7 additions & 0 deletions hello.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// hello.c
#include <stdio.h>

int main() {
printf("Hello, world!\n");
return 0;
}