Skip to content

Commit 5acb27d

Browse files
authored
Merge pull request #23 from stffrdhrn/github-workflow
GitHub workflow - nightly release
2 parents 5da3c5d + 3d56bf5 commit 5acb27d

File tree

92 files changed

+18597
-12389
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+18597
-12389
lines changed

.github/workflows/nightly.yaml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: Nightly Build
2+
3+
on:
4+
schedule:
5+
- cron: '0 1 * * *'
6+
7+
jobs:
8+
activity-check:
9+
runs-on: ubuntu-latest
10+
name: Check if branch is stale
11+
outputs:
12+
stale: ${{ steps.activity_check.outputs.stale }}
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: show latest commit
16+
run: |
17+
echo ${{ github.sha }}
18+
19+
- id: activity_check
20+
continue-on-error: true
21+
name: check latest commit is less than a day
22+
if: ${{ github.event_name == 'schedule' }}
23+
run: |
24+
test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "stale=true" >> "$GITHUB_OUTPUT"
25+
26+
build:
27+
needs: activity-check
28+
if: needs.activity-check.outputs.stale != 'true'
29+
runs-on: ubuntu-latest
30+
steps:
31+
- uses: actions/checkout@v3
32+
33+
- name: install dependencies
34+
run: |
35+
sudo apt update
36+
sudo apt-get install -y build-essential autoconf automake autotools-dev xz-utils git libelf-dev texinfo
37+
38+
- name: build or1ksim
39+
run: |
40+
./configure --prefix=/opt/or1k
41+
make -j $(nproc)
42+
make DESTDIR=$PWD/install install
43+
44+
- name: tarball build
45+
run: tar czvf or1ksim.tar.gz -C ./install/opt/ or1k/
46+
47+
- uses: actions/upload-artifact@v3
48+
with:
49+
name: or1ksim-nightly
50+
path: or1ksim.tar.gz
51+
52+
create-release:
53+
needs: build
54+
runs-on: ubuntu-latest
55+
steps:
56+
- uses: actions/checkout@v3
57+
58+
- name: Download all artifacts to current Directory
59+
uses: actions/download-artifact@v3
60+
with:
61+
name: or1ksim-nightly
62+
63+
- name: Display structure of downloaded files
64+
run: ls -ltr
65+
66+
- name: Run Commands to Setup Env
67+
run: |
68+
DATESTAMP="$(date --utc '+%Y-%m-%d')"
69+
echo "Version: ${DATESTAMP}-nightly"
70+
71+
# Setup environment variables
72+
echo "DATESTAMP=${DATESTAMP}" >> $GITHUB_ENV
73+
echo "DATEWORD=$(date --utc '+%B %d, %Y')" >> $GITHUB_ENV
74+
shell: bash
75+
76+
- name: Create Release
77+
id: create_release
78+
uses: actions/create-release@v1
79+
env:
80+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
81+
with:
82+
tag_name: ${{ env.DATESTAMP }}
83+
release_name: "Nightly: ${{ env.DATEWORD }}"
84+
body: |
85+
**Automated Nightly Release**
86+
${{ env.DATESTAMP }}-nightly
87+
draft: false
88+
prerelease: true
89+
90+
- name: Upload Release Asset
91+
id: upload-release-asset
92+
uses: actions/upload-release-asset@v1
93+
env:
94+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
with:
96+
upload_url: ${{ steps.create_release.outputs.upload_url }}
97+
asset_path: ./or1ksim.tar.gz
98+
asset_name: or1ksim-${{ env.DATESTAMP }}.tar.gz
99+
asset_content_type: application/gzip

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
autom4te.cache/
2-
config.h.in~
2+
*~
33
cscope.out
44
doc/stamp-vti
5+
doc/version.texi
56
cu.log
67
sim.log

Makefile.in

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Makefile.in generated by automake 1.16.1 from Makefile.am.
1+
# Makefile.in generated by automake 1.16.5 from Makefile.am.
22
# @configure_input@
33

4-
# Copyright (C) 1994-2018 Free Software Foundation, Inc.
4+
# Copyright (C) 1994-2021 Free Software Foundation, Inc.
55

66
# This Makefile.in is free software; the Free Software Foundation
77
# gives unlimited permission to copy and/or distribute it,
@@ -256,8 +256,8 @@ am__recursive_targets = \
256256
$(am__extra_recursive_targets)
257257
AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
258258
cscope distdir distdir-am dist dist-all distcheck
259-
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
260-
$(LISP)config.h.in
259+
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
260+
config.h.in
261261
# Read a list of newline-separated strings from the standard input,
262262
# and print each of them once, without duplicates. Input order is
263263
# *not* preserved.
@@ -274,9 +274,6 @@ am__define_uniq_tagged_files = \
274274
unique=`for i in $$list; do \
275275
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
276276
done | $(am__uniquify_input)`
277-
ETAGS = etags
278-
CTAGS = ctags
279-
CSCOPE = cscope
280277
DIST_SUBDIRS = $(SUBDIRS)
281278
am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in AUTHORS \
282279
COPYING ChangeLog INSTALL NEWS README compile config.guess \
@@ -319,6 +316,8 @@ am__relativize = \
319316
DIST_ARCHIVES = $(distdir).tar.gz
320317
GZIP_ENV = --best
321318
DIST_TARGETS = dist-gzip
319+
# Exists only to be overridden by the user if desired.
320+
AM_DISTCHECK_DVI_TARGET = dvi
322321
distuninstallcheck_listfiles = find . -type f -print
323322
am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
324323
| sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
@@ -339,9 +338,10 @@ CCASDEPMODE = @CCASDEPMODE@
339338
CCASFLAGS = @CCASFLAGS@
340339
CCDEPMODE = @CCDEPMODE@
341340
CFLAGS = @CFLAGS@
342-
CPP = @CPP@
343341
CPPFLAGS = @CPPFLAGS@
344342
CPU_ARCH = @CPU_ARCH@
343+
CSCOPE = @CSCOPE@
344+
CTAGS = @CTAGS@
345345
CYGPATH_W = @CYGPATH_W@
346346
DEBUGFLAGS = @DEBUGFLAGS@
347347
DEFS = @DEFS@
@@ -354,8 +354,10 @@ ECHO_C = @ECHO_C@
354354
ECHO_N = @ECHO_N@
355355
ECHO_T = @ECHO_T@
356356
EGREP = @EGREP@
357+
ETAGS = @ETAGS@
357358
EXEEXT = @EXEEXT@
358359
FGREP = @FGREP@
360+
FILECMD = @FILECMD@
359361
GREP = @GREP@
360362
INCLUDES = @INCLUDES@
361363
INSTALL = @INSTALL@
@@ -374,6 +376,7 @@ LOCAL_CFLAGS = @LOCAL_CFLAGS@
374376
LOCAL_DEFS = @LOCAL_DEFS@
375377
LOCAL_LDFLAGS = @LOCAL_LDFLAGS@
376378
LTLIBOBJS = @LTLIBOBJS@
379+
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
377380
MAKEINFO = @MAKEINFO@
378381
MANIFEST_TOOL = @MANIFEST_TOOL@
379382
MKDIR_P = @MKDIR_P@
@@ -445,6 +448,7 @@ pdfdir = @pdfdir@
445448
prefix = @prefix@
446449
program_transform_name = @program_transform_name@
447450
psdir = @psdir@
451+
runstatedir = @runstatedir@
448452
sbindir = @sbindir@
449453
sharedstatedir = @sharedstatedir@
450454
srcdir = @srcdir@
@@ -894,7 +898,6 @@ cscopelist-am: $(am__tagged_files)
894898
distclean-tags:
895899
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
896900
-rm -f cscope.out cscope.in.out cscope.po.out cscope.files
897-
898901
distdir: $(BUILT_SOURCES)
899902
$(MAKE) $(AM_MAKEFLAGS) distdir-am
900903

@@ -978,6 +981,10 @@ dist-xz: distdir
978981
tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
979982
$(am__post_remove_distdir)
980983

984+
dist-zstd: distdir
985+
tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
986+
$(am__post_remove_distdir)
987+
981988
dist-tarZ: distdir
982989
@echo WARNING: "Support for distribution archives compressed with" \
983990
"legacy program 'compress' is deprecated." >&2
@@ -1020,6 +1027,8 @@ distcheck: dist
10201027
eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
10211028
*.zip*) \
10221029
unzip $(distdir).zip ;;\
1030+
*.tar.zst*) \
1031+
zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
10231032
esac
10241033
chmod -R a-w $(distdir)
10251034
chmod u+w $(distdir)
@@ -1035,7 +1044,7 @@ distcheck: dist
10351044
$(DISTCHECK_CONFIGURE_FLAGS) \
10361045
--srcdir=../.. --prefix="$$dc_install_base" \
10371046
&& $(MAKE) $(AM_MAKEFLAGS) \
1038-
&& $(MAKE) $(AM_MAKEFLAGS) dvi \
1047+
&& $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
10391048
&& $(MAKE) $(AM_MAKEFLAGS) check \
10401049
&& $(MAKE) $(AM_MAKEFLAGS) install \
10411050
&& $(MAKE) $(AM_MAKEFLAGS) installcheck \
@@ -1227,20 +1236,21 @@ uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \
12271236
clean-libLTLIBRARIES clean-libtool clean-noinstLTLIBRARIES \
12281237
cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
12291238
dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
1230-
distcheck distclean distclean-compile distclean-generic \
1231-
distclean-hdr distclean-libtool distclean-tags distcleancheck \
1232-
distdir distuninstallcheck dvi dvi-am html html-am info \
1233-
info-am install install-am install-binPROGRAMS install-data \
1234-
install-data-am install-dvi install-dvi-am install-exec \
1235-
install-exec-am install-html install-html-am \
1236-
install-includeHEADERS install-info install-info-am \
1237-
install-libLTLIBRARIES install-man install-pdf install-pdf-am \
1238-
install-ps install-ps-am install-strip installcheck \
1239-
installcheck-am installdirs installdirs-am maintainer-clean \
1240-
maintainer-clean-generic mostlyclean mostlyclean-compile \
1241-
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
1242-
tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \
1243-
uninstall-includeHEADERS uninstall-libLTLIBRARIES
1239+
dist-zstd distcheck distclean distclean-compile \
1240+
distclean-generic distclean-hdr distclean-libtool \
1241+
distclean-tags distcleancheck distdir distuninstallcheck dvi \
1242+
dvi-am html html-am info info-am install install-am \
1243+
install-binPROGRAMS install-data install-data-am install-dvi \
1244+
install-dvi-am install-exec install-exec-am install-html \
1245+
install-html-am install-includeHEADERS install-info \
1246+
install-info-am install-libLTLIBRARIES install-man install-pdf \
1247+
install-pdf-am install-ps install-ps-am install-strip \
1248+
installcheck installcheck-am installdirs installdirs-am \
1249+
maintainer-clean maintainer-clean-generic mostlyclean \
1250+
mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
1251+
pdf pdf-am ps ps-am tags tags-am uninstall uninstall-am \
1252+
uninstall-binPROGRAMS uninstall-includeHEADERS \
1253+
uninstall-libLTLIBRARIES
12441254

12451255
.PRECIOUS: Makefile
12461256

0 commit comments

Comments
 (0)