Skip to content

Commit

Permalink
Add the artifact upload
Browse files Browse the repository at this point in the history
Remove all platforms but Ubuntu-22.04

Allow workflow_dispatch
  • Loading branch information
blackgnezdo committed Jan 20, 2024
1 parent 90c91ea commit 2cc7538
Showing 1 changed file with 9 additions and 83 deletions.
92 changes: 9 additions & 83 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,22 @@ on:
- v12-branch
# All pull_requests trigger a retest.
pull_request:
workflow_dispatch:

jobs:

mac:
strategy:
fail-fast: false
runs-on: macos-latest
name: '🍏 macOS'
steps:

- uses: actions/checkout@v2

- name: Install dependencies
run: |
brew install bison
- name: Build, check and install
run: |
export PATH="/usr/local/opt/bison/bin:$PATH"
autoconf
./configure
make check
sudo make install
- name: Test
run: ./.github/test.sh


lin:
strategy:
fail-fast: false
matrix:
os: [
'20.04',
'22.04'
]
runs-on: ubuntu-${{ matrix.os }}
name: '🐧 Ubuntu ${{ matrix.os }}'
steps:

- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand All @@ -58,62 +33,13 @@ jobs:
- name: Build, check and install
run: |
autoconf
./configure
./configure --prefix=$PWD/inst
make check
sudo make install
- name: Test
run: ./.github/test.sh

- name: Documentation
run: |
cd Documentation
make html
win:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include: [
{ msystem: MINGW64, arch: x86_64 },
{ msystem: MINGW32, arch: i686 }
]
name: 🟪 ${{ matrix.msystem}} · ${{ matrix.arch }}
defaults:
run:
shell: msys2 {0}
env:
MINGW_ARCH: ${{ matrix.msystem }}
steps:

- run: git config --global core.autocrlf input
shell: bash

- uses: actions/checkout@v2

- uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msystem }}
update: true
install: >
git
base-devel
gperf
mingw-w64-${{ matrix.arch }}-toolchain
- name: Build and check
run: |
cd msys2
makepkg-mingw --noconfirm --noprogressbar -sCLf
- name: Install
run: pacman -U --noconfirm msys2/*.zst

- name: Test
run: ./.github/test.sh
make install
tar zcf iverilog.tar.gz inst
- uses: actions/upload-artifact@v2
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.msystem }}-${{ matrix.arch }}
path: msys2/*.zst
name: ${{ matrix.os }} build
path: iverilog.tar.gz

0 comments on commit 2cc7538

Please sign in to comment.