Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisDyallo committed Jun 28, 2024
1 parent 5d70d71 commit e49623f
Showing 1 changed file with 68 additions and 61 deletions.
129 changes: 68 additions & 61 deletions .github/workflows/build-nativeshims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,37 +28,37 @@ on:
type: string

jobs:
build-windows:
name: Build Windows
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- run: |
echo 'Running build script: Windows'
cd Yubico.NativeShims
& ./build-windows.ps1
- uses: actions/upload-artifact@v4
with:
name: win-x64
path: Yubico.NativeShims/win-x64/**
- uses: actions/upload-artifact@v4
with:
name: win-x86
path: Yubico.NativeShims/win-x86/**
- uses: actions/upload-artifact@v4
with:
name: win-arm64
path: Yubico.NativeShims/win-arm64/**
- uses: actions/upload-artifact@v4
with:
name: nuspec
path: |
Yubico.NativeShims/*.nuspec
readme.md
- uses: actions/upload-artifact@v4
with:
name: msbuild
path: Yubico.NativeShims/msbuild/*
# build-windows:
# name: Build Windows
# runs-on: windows-2019
# steps:
# - uses: actions/checkout@v4
# - run: |
# echo 'Running build script: Windows'
# cd Yubico.NativeShims
# & ./build-windows.ps1
# - uses: actions/upload-artifact@v4
# with:
# name: win-x64
# path: Yubico.NativeShims/win-x64/**
# - uses: actions/upload-artifact@v4
# with:
# name: win-x86
# path: Yubico.NativeShims/win-x86/**
# - uses: actions/upload-artifact@v4
# with:
# name: win-arm64
# path: Yubico.NativeShims/win-arm64/**
# - uses: actions/upload-artifact@v4
# with:
# name: nuspec
# path: |
# Yubico.NativeShims/*.nuspec
# readme.md
# - uses: actions/upload-artifact@v4
# with:
# name: msbuild
# path: Yubico.NativeShims/msbuild/*

build-linux-amd64:
name: Build Linux (amd64)
Expand All @@ -73,46 +73,53 @@ jobs:
with:
name: linux-x64
path: Yubico.NativeShims/linux-x64/*.so

build-linux-arm64:
name: Build Linux (arm64)
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- run: |
echo 'Running build script: Linux (arm64)'
cd Yubico.NativeShims
sh ./build-linux-arm64.sh
- uses: actions/upload-artifact@v4
with:
name: linux-arm64
path: Yubico.NativeShims/linux-arm64/*.so
name: nuspec
path: |
Yubico.NativeShims/*.nuspec
readme.md
# build-linux-arm64:
# name: Build Linux (arm64)
# runs-on: ubuntu-20.04
# steps:
# - uses: actions/checkout@v4
# - run: |
# echo 'Running build script: Linux (arm64)'
# cd Yubico.NativeShims
# sh ./build-linux-arm64.sh
# - uses: actions/upload-artifact@v4
# with:
# name: linux-arm64
# path: Yubico.NativeShims/linux-arm64/*.so

build-macos:
name: Build macOS
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- run: |
echo 'Running build script: macOS'
cd Yubico.NativeShims
sh ./build-macOS.sh
- uses: actions/upload-artifact@v4
with:
name: osx-x64
path: Yubico.NativeShims/osx-x64/**
- uses: actions/upload-artifact@v4
with:
name: osx-arm64
path: Yubico.NativeShims/osx-arm64/**
# build-macos:
# name: Build macOS
# runs-on: macos-12
# steps:
# - uses: actions/checkout@v4
# - run: |
# echo 'Running build script: macOS'
# cd Yubico.NativeShims
# sh ./build-macOS.sh
# - uses: actions/upload-artifact@v4
# with:
# name: osx-x64
# path: Yubico.NativeShims/osx-x64/**
# - uses: actions/upload-artifact@v4
# with:
# name: osx-arm64
# path: Yubico.NativeShims/osx-arm64/**

pack:
name: Package artifacts
runs-on: windows-2019
needs: [build-windows, build-linux-amd64, build-linux-arm64, build-macos]
needs: [build-linux-amd64]
steps:
- uses: actions/download-artifact@v4
- run: |
Get-ChildItem -Recurse
mv nuspec/*.* .
$nuspec = [xml](gc Yubico.NativeShims.nuspec)
$repo = $nuspec.CreateElement("repository")
Expand Down

0 comments on commit e49623f

Please sign in to comment.